import { defineComponent as Dr, openBlock as z, createElementBlock as W, createElementVNode as O, getCurrentInstance as ge, reactive as Q, ref as ce, onBeforeMount as Ie, onMounted as lr, nextTick as te, toRefs as le, resolveComponent as V, resolveDirective as Be, withDirectives as fe, toDisplayString as B, createVNode as T, withModifiers as wt, withCtx as N, createTextVNode as G, vShow as ke, createBlock as Y, normalizeClass as ve, Fragment as re, renderList as ne, createCommentVNode as C, computed as F, watch as Ve, normalizeStyle as he } from "vue";
const Sr = {
  namespaced: !0,
  state: {
    loginFlag: 0,
    userInfo: {},
    //用户信息
    platform: "易鲸云",
    // 登录
    componentVar: {
      loginWay: "",
      isLoginRegister: !0,
      isBasicInfo: !1,
      isConcernWeChat: !1,
      isWeChatLogin: !1
      // 控制微信登录
    }
  },
  mutations: {
    // 登录状态
    SET_LOGIN_FLAG(e, t) {
      console.log(t, "改变登录状态"), e.loginFlag = t;
    },
    // 用户信息
    SET_USER_INFO(e, t) {
      console.log(t, "改变用户信息"), e.userInfo = t;
    },
    // 当前所用平台
    SET_PLATFORM(e, t) {
      console.log(t, "平台信息"), e.platform = t;
    },
    // 控制登录组件弹窗切换
    SET_COMPONENT_VAR(e, t) {
      e.componentVar = { ...e.componentVar, ...t };
    }
  },
  actions: {}
};
var kr = (e, t) => {
  const n = e.__vccOpts || e;
  for (const [r, u] of t)
    n[r] = u;
  return n;
};
const Vr = Dr({
  name: "Clock"
}), Wr = {
  class: "icon",
  width: "200",
  height: "200",
  viewBox: "0 0 1024 1024",
  xmlns: "http://www.w3.org/2000/svg"
}, Mr = /* @__PURE__ */ O("path", {
  fill: "currentColor",
  d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
}, null, -1), Cr = /* @__PURE__ */ O("path", {
  fill: "currentColor",
  d: "M480 256a32 32 0 0132 32v256a32 32 0 01-64 0V288a32 32 0 0132-32z"
}, null, -1), Rr = /* @__PURE__ */ O("path", {
  fill: "currentColor",
  d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"
}, null, -1), qr = [
  Mr,
  Cr,
  Rr
];
function Yr(e, t, n, r, u, c) {
  return z(), W("svg", Wr, qr);
}
var Zr = /* @__PURE__ */ kr(Vr, [["render", Yr]]);
function Fr(e) {
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Fe = {}, Gr = {
  get exports() {
    return Fe;
  },
  set exports(e) {
    Fe = e;
  }
}, Er = Gr.exports = {};
Er.forEach = function(e, t) {
  for (var n = 0; n < e.length; n++) {
    var r = t(e[n]);
    if (r)
      return r;
  }
};
var Ir = function(e) {
  var t = e.stateHandler.getState;
  function n(l) {
    var d = t(l);
    return d && !!d.isDetectable;
  }
  function r(l) {
    t(l).isDetectable = !0;
  }
  function u(l) {
    return !!t(l).busy;
  }
  function c(l, d) {
    t(l).busy = !!d;
  }
  return {
    isDetectable: n,
    markAsDetectable: r,
    isBusy: u,
    markBusy: c
  };
}, Br = function(e) {
  var t = {};
  function n(l) {
    var d = e.get(l);
    return d === void 0 ? [] : t[d] || [];
  }
  function r(l, d) {
    var s = e.get(l);
    t[s] || (t[s] = []), t[s].push(d);
  }
  function u(l, d) {
    for (var s = n(l), b = 0, i = s.length; b < i; ++b)
      if (s[b] === d) {
        s.splice(b, 1);
        break;
      }
  }
  function c(l) {
    var d = n(l);
    d && (d.length = 0);
  }
  return {
    get: n,
    add: r,
    removeListener: u,
    removeAllListeners: c
  };
}, Ur = function() {
  var e = 1;
  function t() {
    return e++;
  }
  return {
    generate: t
  };
}, Ar = function(e) {
  var t = e.idGenerator, n = e.stateHandler.getState;
  function r(c) {
    var l = n(c);
    return l && l.id !== void 0 ? l.id : null;
  }
  function u(c) {
    var l = n(c);
    if (!l)
      throw new Error("setId required the element to have a resize detection state.");
    var d = t.generate();
    return l.id = d, d;
  }
  return {
    get: r,
    set: u
  };
}, Jr = function(e) {
  function t() {
  }
  var n = {
    log: t,
    warn: t,
    error: t
  };
  if (!e && window.console) {
    var r = function(u, c) {
      u[c] = function() {
        var d = console[c];
        if (d.apply)
          d.apply(console, arguments);
        else
          for (var s = 0; s < arguments.length; s++)
            d(arguments[s]);
      };
    };
    r(n, "log"), r(n, "warn"), r(n, "error");
  }
  return n;
}, Ge = {}, Kr = {
  get exports() {
    return Ge;
  },
  set exports(e) {
    Ge = e;
  }
}, ir = Kr.exports = {};
ir.isIE = function(e) {
  function t() {
    var r = navigator.userAgent.toLowerCase();
    return r.indexOf("msie") !== -1 || r.indexOf("trident") !== -1 || r.indexOf(" edge/") !== -1;
  }
  if (!t())
    return !1;
  if (!e)
    return !0;
  var n = function() {
    var r, u = 3, c = document.createElement("div"), l = c.getElementsByTagName("i");
    do
      c.innerHTML = "<!--[if gt IE " + ++u + "]><i></i><![endif]-->";
    while (l[0]);
    return u > 4 ? u : r;
  }();
  return e === n;
};
ir.isLegacyOpera = function() {
  return !!window.opera;
};
var bt = {}, Qr = {
  get exports() {
    return bt;
  },
  set exports(e) {
    bt = e;
  }
}, _r = Qr.exports = {};
_r.getOption = $r;
function $r(e, t, n) {
  var r = e[t];
  return r == null && n !== void 0 ? n : r;
}
var St = bt, en = function(t) {
  t = t || {};
  var n = t.reporter, r = St.getOption(t, "async", !0), u = St.getOption(t, "auto", !0);
  u && !r && (n && n.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."), r = !0);
  var c = kt(), l, d = !1;
  function s(m, y) {
    !d && u && r && c.size() === 0 && H(), c.add(m, y);
  }
  function b() {
    for (d = !0; c.size(); ) {
      var m = c;
      c = kt(), m.process();
    }
    d = !1;
  }
  function i(m) {
    d || (m === void 0 && (m = r), l && (a(l), l = null), m ? H() : b());
  }
  function H() {
    l = o(b);
  }
  function a(m) {
    var y = clearTimeout;
    return y(m);
  }
  function o(m) {
    var y = function(P) {
      return setTimeout(P, 0);
    };
    return y(m);
  }
  return {
    add: s,
    force: i
  };
};
function kt() {
  var e = {}, t = 0, n = 0, r = 0;
  function u(d, s) {
    s || (s = d, d = 0), d > n ? n = d : d < r && (r = d), e[d] || (e[d] = []), e[d].push(s), t++;
  }
  function c() {
    for (var d = r; d <= n; d++)
      for (var s = e[d], b = 0; b < s.length; b++) {
        var i = s[b];
        i();
      }
  }
  function l() {
    return t;
  }
  return {
    add: u,
    process: c,
    size: l
  };
}
var Pt = "_erd";
function tn(e) {
  return e[Pt] = {}, ur(e);
}
function ur(e) {
  return e[Pt];
}
function rn(e) {
  delete e[Pt];
}
var nn = {
  initState: tn,
  getState: ur,
  cleanState: rn
}, De = Ge, an = function(e) {
  e = e || {};
  var t = e.reporter, n = e.batchProcessor, r = e.stateHandler.getState;
  if (!t)
    throw new Error("Missing required dependency: reporter.");
  function u(b, i) {
    function H() {
      i(b);
    }
    if (De.isIE(8))
      r(b).object = {
        proxy: H
      }, b.attachEvent("onresize", H);
    else {
      var a = d(b);
      if (!a)
        throw new Error("Element is not detectable by this strategy.");
      a.contentDocument.defaultView.addEventListener("resize", H);
    }
  }
  function c(b) {
    var i = e.important ? " !important; " : "; ";
    return (b.join(i) + i).trim();
  }
  function l(b, i, H) {
    H || (H = i, i = b, b = null), b = b || {}, b.debug;
    function a(o, m) {
      var y = c(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none"]), P = !1, w = window.getComputedStyle(o), g = o.offsetWidth, k = o.offsetHeight;
      r(o).startSize = {
        width: g,
        height: k
      };
      function x() {
        function f() {
          if (w.position === "static") {
            o.style.setProperty("position", "relative", b.important ? "important" : "");
            var X = function(S, D, v, j) {
              function M(I) {
                return I.replace(/[^-\d\.]/g, "");
              }
              var E = v[j];
              E !== "auto" && M(E) !== "0" && (S.warn("An element that is positioned static has style." + j + "=" + E + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + j + " will be set to 0. Element: ", D), D.style.setProperty(j, "0", b.important ? "important" : ""));
            };
            X(t, o, w, "top"), X(t, o, w, "right"), X(t, o, w, "bottom"), X(t, o, w, "left");
          }
        }
        function p() {
          P || f();
          function X(D, v) {
            if (!D.contentDocument) {
              var j = r(D);
              j.checkForObjectDocumentTimeoutId && window.clearTimeout(j.checkForObjectDocumentTimeoutId), j.checkForObjectDocumentTimeoutId = setTimeout(function() {
                j.checkForObjectDocumentTimeoutId = 0, X(D, v);
              }, 100);
              return;
            }
            v(D.contentDocument);
          }
          var S = this;
          X(S, function(v) {
            m(o);
          });
        }
        w.position !== "" && (f(), P = !0);
        var h = document.createElement("object");
        h.style.cssText = y, h.tabIndex = -1, h.type = "text/html", h.setAttribute("aria-hidden", "true"), h.onload = p, De.isIE() || (h.data = "about:blank"), r(o) && (o.appendChild(h), r(o).object = h, De.isIE() && (h.data = "about:blank"));
      }
      n ? n.add(x) : x();
    }
    De.isIE(8) ? H(i) : a(i, H);
  }
  function d(b) {
    return r(b).object;
  }
  function s(b) {
    if (r(b)) {
      var i = d(b);
      i && (De.isIE(8) ? b.detachEvent("onresize", i.proxy) : b.removeChild(i), r(b).checkForObjectDocumentTimeoutId && window.clearTimeout(r(b).checkForObjectDocumentTimeoutId), delete r(b).object);
    }
  }
  return {
    makeDetectable: l,
    addListener: u,
    uninstall: s
  };
}, sn = Fe.forEach, on = function(e) {
  e = e || {};
  var t = e.reporter, n = e.batchProcessor, r = e.stateHandler.getState;
  e.stateHandler.hasState;
  var u = e.idHandler;
  if (!n)
    throw new Error("Missing required dependency: batchProcessor");
  if (!t)
    throw new Error("Missing required dependency: reporter.");
  var c = i(), l = "erd_scroll_detection_scrollbar_style", d = "erd_scroll_detection_container";
  function s(x) {
    H(x, l, d);
  }
  s(window.document);
  function b(x) {
    var f = e.important ? " !important; " : "; ";
    return (x.join(f) + f).trim();
  }
  function i() {
    var x = 500, f = 500, p = document.createElement("div");
    p.style.cssText = b(["position: absolute", "width: " + x * 2 + "px", "height: " + f * 2 + "px", "visibility: hidden", "margin: 0", "padding: 0"]);
    var h = document.createElement("div");
    h.style.cssText = b(["position: absolute", "width: " + x + "px", "height: " + f + "px", "overflow: scroll", "visibility: none", "top: " + -x * 3 + "px", "left: " + -f * 3 + "px", "visibility: hidden", "margin: 0", "padding: 0"]), h.appendChild(p), document.body.insertBefore(h, document.body.firstChild);
    var X = x - h.clientWidth, S = f - h.clientHeight;
    return document.body.removeChild(h), {
      width: X,
      height: S
    };
  }
  function H(x, f, p) {
    function h(v, j) {
      j = j || function(E) {
        x.head.appendChild(E);
      };
      var M = x.createElement("style");
      return M.innerHTML = v, M.id = f, j(M), M;
    }
    if (!x.getElementById(f)) {
      var X = p + "_animation", S = p + "_animation_active", D = `/* Created by the element-resize-detector library. */
`;
      D += "." + p + " > div::-webkit-scrollbar { " + b(["display: none"]) + ` }

`, D += "." + S + " { " + b(["-webkit-animation-duration: 0.1s", "animation-duration: 0.1s", "-webkit-animation-name: " + X, "animation-name: " + X]) + ` }
`, D += "@-webkit-keyframes " + X + ` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`, D += "@keyframes " + X + " { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }", h(D);
    }
  }
  function a(x) {
    x.className += " " + d + "_animation_active";
  }
  function o(x, f, p) {
    if (x.addEventListener)
      x.addEventListener(f, p);
    else if (x.attachEvent)
      x.attachEvent("on" + f, p);
    else
      return t.error("[scroll] Don't know how to add event listeners.");
  }
  function m(x, f, p) {
    if (x.removeEventListener)
      x.removeEventListener(f, p);
    else if (x.detachEvent)
      x.detachEvent("on" + f, p);
    else
      return t.error("[scroll] Don't know how to remove event listeners.");
  }
  function y(x) {
    return r(x).container.childNodes[0].childNodes[0].childNodes[0];
  }
  function P(x) {
    return r(x).container.childNodes[0].childNodes[0].childNodes[1];
  }
  function w(x, f) {
    var p = r(x).listeners;
    if (!p.push)
      throw new Error("Cannot add listener to an element that is not detectable.");
    r(x).listeners.push(f);
  }
  function g(x, f, p) {
    p || (p = f, f = x, x = null), x = x || {};
    function h() {
      if (x.debug) {
        var L = Array.prototype.slice.call(arguments);
        if (L.unshift(u.get(f), "Scroll: "), t.log.apply)
          t.log.apply(null, L);
        else
          for (var R = 0; R < L.length; R++)
            t.log(L[R]);
      }
    }
    function X(L) {
      function R(Z) {
        var oe = Z.getRootNode && Z.getRootNode().contains(Z);
        return Z === Z.ownerDocument.body || Z.ownerDocument.body.contains(Z) || oe;
      }
      return !R(L) || window.getComputedStyle(L) === null;
    }
    function S(L) {
      var R = r(L).container.childNodes[0], Z = window.getComputedStyle(R);
      return !Z.width || Z.width.indexOf("px") === -1;
    }
    function D() {
      var L = window.getComputedStyle(f), R = {};
      return R.position = L.position, R.width = f.offsetWidth, R.height = f.offsetHeight, R.top = L.top, R.right = L.right, R.bottom = L.bottom, R.left = L.left, R.widthCSS = L.width, R.heightCSS = L.height, R;
    }
    function v() {
      var L = D();
      r(f).startSize = {
        width: L.width,
        height: L.height
      }, h("Element start size", r(f).startSize);
    }
    function j() {
      r(f).listeners = [];
    }
    function M() {
      if (h("storeStyle invoked."), !r(f)) {
        h("Aborting because element has been uninstalled");
        return;
      }
      var L = D();
      r(f).style = L;
    }
    function E(L, R, Z) {
      r(L).lastWidth = R, r(L).lastHeight = Z;
    }
    function I(L) {
      return y(L).childNodes[0];
    }
    function K() {
      return 2 * c.width + 1;
    }
    function se() {
      return 2 * c.height + 1;
    }
    function He(L) {
      return L + 10 + K();
    }
    function pe(L) {
      return L + 10 + se();
    }
    function Ke(L) {
      return L * 2 + K();
    }
    function Qe(L) {
      return L * 2 + se();
    }
    function Me(L, R, Z) {
      var oe = y(L), we = P(L), je = He(R), ze = pe(Z), _ = Ke(R), q = Qe(Z);
      oe.scrollLeft = je, oe.scrollTop = ze, we.scrollLeft = _, we.scrollTop = q;
    }
    function Ce() {
      var L = r(f).container;
      if (!L) {
        L = document.createElement("div"), L.className = d, L.style.cssText = b(["visibility: hidden", "display: inline", "width: 0px", "height: 0px", "z-index: -1", "overflow: hidden", "margin: 0", "padding: 0"]), r(f).container = L, a(L), f.appendChild(L);
        var R = function() {
          r(f).onRendered && r(f).onRendered();
        };
        o(L, "animationstart", R), r(f).onAnimationStart = R;
      }
      return L;
    }
    function Hr() {
      function L() {
        var U = r(f).style;
        if (U.position === "static") {
          f.style.setProperty("position", "relative", x.important ? "important" : "");
          var de = function(Xe, ye, Xr, qe) {
            function Nr(Tr) {
              return Tr.replace(/[^-\d\.]/g, "");
            }
            var _e = Xr[qe];
            _e !== "auto" && Nr(_e) !== "0" && (Xe.warn("An element that is positioned static has style." + qe + "=" + _e + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + qe + " will be set to 0. Element: ", ye), ye.style[qe] = 0);
          };
          de(t, f, U, "top"), de(t, f, U, "right"), de(t, f, U, "bottom"), de(t, f, U, "left");
        }
      }
      function R(U, de, Xe, ye) {
        return U = U ? U + "px" : "0", de = de ? de + "px" : "0", Xe = Xe ? Xe + "px" : "0", ye = ye ? ye + "px" : "0", ["left: " + U, "top: " + de, "right: " + ye, "bottom: " + Xe];
      }
      if (h("Injecting elements"), !r(f)) {
        h("Aborting because element has been uninstalled");
        return;
      }
      L();
      var Z = r(f).container;
      Z || (Z = Ce());
      var oe = c.width, we = c.height, je = b(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%", "left: 0px", "top: 0px"]), ze = b(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden"].concat(R(-(1 + oe), -(1 + we), -we, -oe))), _ = b(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]), q = b(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]), ee = b(["position: absolute", "left: 0", "top: 0"]), Pe = b(["position: absolute", "width: 200%", "height: 200%"]), ie = document.createElement("div"), ue = document.createElement("div"), Le = document.createElement("div"), Xt = document.createElement("div"), Re = document.createElement("div"), Nt = document.createElement("div");
      ie.dir = "ltr", ie.style.cssText = je, ie.className = d, ue.className = d, ue.style.cssText = ze, Le.style.cssText = _, Xt.style.cssText = ee, Re.style.cssText = q, Nt.style.cssText = Pe, Le.appendChild(Xt), Re.appendChild(Nt), ue.appendChild(Le), ue.appendChild(Re), ie.appendChild(ue), Z.appendChild(ie);
      function Tt() {
        var U = r(f);
        U && U.onExpand ? U.onExpand() : h("Aborting expand scroll handler: element has been uninstalled");
      }
      function Dt() {
        var U = r(f);
        U && U.onShrink ? U.onShrink() : h("Aborting shrink scroll handler: element has been uninstalled");
      }
      o(Le, "scroll", Tt), o(Re, "scroll", Dt), r(f).onExpandScroll = Tt, r(f).onShrinkScroll = Dt;
    }
    function jr() {
      function L(_, q, ee) {
        var Pe = I(_), ie = He(q), ue = pe(ee);
        Pe.style.setProperty("width", ie + "px", x.important ? "important" : ""), Pe.style.setProperty("height", ue + "px", x.important ? "important" : "");
      }
      function R(_) {
        var q = f.offsetWidth, ee = f.offsetHeight, Pe = q !== r(f).lastWidth || ee !== r(f).lastHeight;
        h("Storing current size", q, ee), E(f, q, ee), n.add(0, function() {
          if (Pe) {
            if (!r(f)) {
              h("Aborting because element has been uninstalled");
              return;
            }
            if (!Z()) {
              h("Aborting because element container has not been initialized");
              return;
            }
            if (x.debug) {
              var ue = f.offsetWidth, Le = f.offsetHeight;
              (ue !== q || Le !== ee) && t.warn(u.get(f), "Scroll: Size changed before updating detector elements.");
            }
            L(f, q, ee);
          }
        }), n.add(1, function() {
          if (!r(f)) {
            h("Aborting because element has been uninstalled");
            return;
          }
          if (!Z()) {
            h("Aborting because element container has not been initialized");
            return;
          }
          Me(f, q, ee);
        }), Pe && _ && n.add(2, function() {
          if (!r(f)) {
            h("Aborting because element has been uninstalled");
            return;
          }
          if (!Z()) {
            h("Aborting because element container has not been initialized");
            return;
          }
          _();
        });
      }
      function Z() {
        return !!r(f).container;
      }
      function oe() {
        function _() {
          return r(f).lastNotifiedWidth === void 0;
        }
        h("notifyListenersIfNeeded invoked");
        var q = r(f);
        if (_() && q.lastWidth === q.startSize.width && q.lastHeight === q.startSize.height)
          return h("Not notifying: Size is the same as the start size, and there has been no notification yet.");
        if (q.lastWidth === q.lastNotifiedWidth && q.lastHeight === q.lastNotifiedHeight)
          return h("Not notifying: Size already notified");
        h("Current size not notified, notifying..."), q.lastNotifiedWidth = q.lastWidth, q.lastNotifiedHeight = q.lastHeight, sn(r(f).listeners, function(ee) {
          ee(f);
        });
      }
      function we() {
        if (h("startanimation triggered."), S(f)) {
          h("Ignoring since element is still unrendered...");
          return;
        }
        h("Element rendered.");
        var _ = y(f), q = P(f);
        (_.scrollLeft === 0 || _.scrollTop === 0 || q.scrollLeft === 0 || q.scrollTop === 0) && (h("Scrollbars out of sync. Updating detector elements..."), R(oe));
      }
      function je() {
        if (h("Scroll detected."), S(f)) {
          h("Scroll event fired while unrendered. Ignoring...");
          return;
        }
        R(oe);
      }
      if (h("registerListenersAndPositionElements invoked."), !r(f)) {
        h("Aborting because element has been uninstalled");
        return;
      }
      r(f).onRendered = we, r(f).onExpand = je, r(f).onShrink = je;
      var ze = r(f).style;
      L(f, ze.width, ze.height);
    }
    function zr() {
      if (h("finalizeDomMutation invoked."), !r(f)) {
        h("Aborting because element has been uninstalled");
        return;
      }
      var L = r(f).style;
      E(f, L.width, L.height), Me(f, L.width, L.height);
    }
    function Lr() {
      p(f);
    }
    function Lt() {
      h("Installing..."), j(), v(), n.add(0, M), n.add(1, Hr), n.add(2, jr), n.add(3, zr), n.add(4, Lr);
    }
    h("Making detectable..."), X(f) ? (h("Element is detached"), Ce(), h("Waiting until element is attached..."), r(f).onRendered = function() {
      h("Element is now attached"), Lt();
    }) : Lt();
  }
  function k(x) {
    var f = r(x);
    f && (f.onExpandScroll && m(y(x), "scroll", f.onExpandScroll), f.onShrinkScroll && m(P(x), "scroll", f.onShrinkScroll), f.onAnimationStart && m(f.container, "animationstart", f.onAnimationStart), f.container && x.removeChild(f.container));
  }
  return {
    makeDetectable: g,
    addListener: w,
    uninstall: k,
    initDocument: s
  };
}, Se = Fe.forEach, ln = Ir, un = Br, dn = Ur, cn = Ar, fn = Jr, Vt = Ge, vn = en, be = nn, pn = an, hn = on;
function Wt(e) {
  return Array.isArray(e) || e.length !== void 0;
}
function Mt(e) {
  if (Array.isArray(e))
    return e;
  var t = [];
  return Se(e, function(n) {
    t.push(n);
  }), t;
}
function Ct(e) {
  return e && e.nodeType === 1;
}
var bn = function(e) {
  e = e || {};
  var t;
  if (e.idHandler)
    t = {
      get: function(g) {
        return e.idHandler.get(g, !0);
      },
      set: e.idHandler.set
    };
  else {
    var n = dn(), r = cn({
      idGenerator: n,
      stateHandler: be
    });
    t = r;
  }
  var u = e.reporter;
  if (!u) {
    var c = u === !1;
    u = fn(c);
  }
  var l = me(e, "batchProcessor", vn({ reporter: u })), d = {};
  d.callOnAdd = !!me(e, "callOnAdd", !0), d.debug = !!me(e, "debug", !1);
  var s = un(t), b = ln({
    stateHandler: be
  }), i, H = me(e, "strategy", "object"), a = me(e, "important", !1), o = {
    reporter: u,
    batchProcessor: l,
    stateHandler: be,
    idHandler: t,
    important: a
  };
  if (H === "scroll" && (Vt.isLegacyOpera() ? (u.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."), H = "object") : Vt.isIE(9) && (u.warn("Scroll strategy is not supported on IE9. Changing to object strategy."), H = "object")), H === "scroll")
    i = hn(o);
  else if (H === "object")
    i = pn(o);
  else
    throw new Error("Invalid strategy name: " + H);
  var m = {};
  function y(g, k, x) {
    function f(v) {
      var j = s.get(v);
      Se(j, function(E) {
        E(v);
      });
    }
    function p(v, j, M) {
      s.add(j, M), v && M(j);
    }
    if (x || (x = k, k = g, g = {}), !k)
      throw new Error("At least one element required.");
    if (!x)
      throw new Error("Listener required.");
    if (Ct(k))
      k = [k];
    else if (Wt(k))
      k = Mt(k);
    else
      return u.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");
    var h = 0, X = me(g, "callOnAdd", d.callOnAdd), S = me(g, "onReady", function() {
    }), D = me(g, "debug", d.debug);
    Se(k, function(j) {
      be.getState(j) || (be.initState(j), t.set(j));
      var M = t.get(j);
      if (D && u.log("Attaching listener to element", M, j), !b.isDetectable(j)) {
        if (D && u.log(M, "Not detectable."), b.isBusy(j)) {
          D && u.log(M, "System busy making it detectable"), p(X, j, x), m[M] = m[M] || [], m[M].push(function() {
            h++, h === k.length && S();
          });
          return;
        }
        return D && u.log(M, "Making detectable..."), b.markBusy(j, !0), i.makeDetectable({ debug: D, important: a }, j, function(I) {
          if (D && u.log(M, "onElementDetectable"), be.getState(I)) {
            b.markAsDetectable(I), b.markBusy(I, !1), i.addListener(I, f), p(X, I, x);
            var K = be.getState(I);
            if (K && K.startSize) {
              var se = I.offsetWidth, He = I.offsetHeight;
              (K.startSize.width !== se || K.startSize.height !== He) && f(I);
            }
            m[M] && Se(m[M], function(pe) {
              pe();
            });
          } else
            D && u.log(M, "Element uninstalled before being detectable.");
          delete m[M], h++, h === k.length && S();
        });
      }
      D && u.log(M, "Already detecable, adding listener."), p(X, j, x), h++;
    }), h === k.length && S();
  }
  function P(g) {
    if (!g)
      return u.error("At least one element is required.");
    if (Ct(g))
      g = [g];
    else if (Wt(g))
      g = Mt(g);
    else
      return u.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");
    Se(g, function(k) {
      s.removeAllListeners(k), i.uninstall(k), be.cleanState(k);
    });
  }
  function w(g) {
    i.initDocument && i.initDocument(g);
  }
  return {
    listenTo: y,
    removeListener: s.removeListener,
    removeAllListeners: s.removeAllListeners,
    uninstall: P,
    initDocument: w
  };
};
function me(e, t, n) {
  var r = e[t];
  return r == null && n !== void 0 ? n : r;
}
const xe = (e, t) => {
  const n = e.__vccOpts || e;
  for (const [r, u] of t)
    n[r] = u;
  return n;
}, mn = {
  name: "LoginDialog",
  components: {},
  setup(e, t) {
    const { proxy: n, appContext: r } = ge();
    console.log(n.$parent, "$this");
    const u = r.config.globalProperties.awsuiaxios;
    let c = Q({
      phone: "",
      captchaCode: ""
    }), l = ce(null), d = ce(null), s = Q({
      btnText: "登录 / 开通",
      validFlag: null,
      // 短信验证码校验状态
      loginLoading: !1,
      tipText: "请使用手机号登录",
      showCodeBtn: !1,
      disabledCodeBtn: !0,
      isCaptchaInput: !1,
      // 控制 验证input框显示
      codeArr: [],
      defaultBtn: !0,
      codeCurrenIndex: 0,
      //当前输入的验证码框index
      mobileFocus: !1,
      //是否获取焦点
      codeInputArr: [],
      codeValidator: {
        status: "",
        txt: ""
      },
      disabledLoginRegister: !0,
      codeBtnText: "获取验证码",
      isShowAgreement: !1
      // 是否显示协议
    }), i = Q({
      phone: [
        { validator: (p, h, X) => {
          h ? /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/.test(h) ? (s.disabledCodeBtn = !1, X()) : s.disabledCodeBtn = !0 : (s.disabledCodeBtn = !0, s.showCodeBtn = !0);
        }, trigger: ["blur", "change"] }
      ]
    });
    Ie(() => {
      s.loginLoading = !0, setTimeout(() => {
        s.loginLoading = !1;
      }, 300);
    }), lr(() => {
      for (var p = 0; p < 6; p++)
        s.codeArr.push({
          value: p,
          active: !1,
          disabled: !0
        });
      document.addEventListener("keydown", (h) => {
        h = h || event, h.keyCode === 8 && s.isCaptchaInput && !s.mobileFocus && (s.codeArr[s.codeCurrenIndex].active = !0, s.codeArr[s.codeCurrenIndex].disabled = !1, s.codeCurrenIndex !== s.codeArr.length - 1 && (s.codeArr[s.codeCurrenIndex + 1].active = !1, s.codeArr[s.codeCurrenIndex + 1].disabled = !0), te(() => {
          n.$refs["code-input" + s.codeCurrenIndex] && n.$refs["code-input" + s.codeCurrenIndex][0] ? (n.$refs["code-input" + s.codeCurrenIndex][0].value = "", n.$refs["code-input" + s.codeCurrenIndex][0].focus()) : (n.$refs["code-input" + s.codeCurrenIndex].value = "", n.$refs["code-input" + s.codeCurrenIndex].focus()), s.codeCurrenIndex > 0 ? s.codeCurrenIndex-- : s.codeCurrenIndex = 0;
        })), h.keyCode === 13 && c.phone && c.captchaCode && !s.disabledLoginRegister && (console.log("回车触发"), m());
      }), document.addEventListener("paste", (h) => {
        if (s.isCaptchaInput && !s.mobileFocus) {
          s.codeInputArr = [];
          let S = (h.clipboardData || window.clipboardData).getData("text").split("");
          S.length === 6 && (s.codeInputArr = S, s.codeInputArr.forEach((D, v) => {
            s.codeArr[v].active = !0, s.codeArr[v].disabled = !0, v === s.codeArr.length - 1 && (s.codeArr[v].active = !0, s.codeArr[v].disabled = !1), te(() => {
              Number.isNaN(parseInt(D)) || (n.$refs["code-input" + v] && n.$refs["code-input" + v][0] ? n.$refs["code-input" + v][0].value = parseInt(D) : n.$refs["code-input" + v].value = parseInt(D), v === s.codeArr.length - 1 && (n.$refs["code-input" + v] && n.$refs["code-input" + v][0] ? n.$refs["code-input" + v][0].focus() : n.$refs["code-input" + v].focus()));
            });
          }));
        }
      });
    });
    let H = (p, h) => {
      if (p.target.value = p.target.value.replace(/[^\d]/g, ""), p.target.value !== "") {
        s.codeValidator.status = "", s.codeValidator.txt = "", s.codeCurrenIndex = h;
        let X = !1;
        s.codeArr[h].active = !0, s.codeArr[h].disabled = !0, h !== s.codeArr.length - 1 && (s.codeArr[h + 1].active = !0, s.codeArr[h + 1].disabled = !1, te(() => {
          n.$refs["code-input" + (h + 1)] && n.$refs["code-input" + (h + 1)][0] ? n.$refs["code-input" + (h + 1)][0].focus() : n.$refs["code-input" + (h + 1)].focus();
        })), s.codeInputArr.length < 6 && (s.codeInputArr.length > 0 && s.codeInputArr.forEach((S, D) => {
          if (D === h) {
            s.codeInputArr[D] = p.target.value, X = !0;
            return;
          }
        }), X || s.codeInputArr.push(p.target.value)), s.codeInputArr.length === 6 && (s.codeInputArr.forEach((S, D) => {
          D === h && p.target.value;
        }), c.captchaCode = s.codeInputArr.join(""), u.post({
          url: "jd",
          data: {
            cmd: "CONSOLE_M_MODELTEMPLATE_USER_LOGIN",
            code: c.captchaCode,
            mobile: c.phone
          }
        }).then((S) => {
          console.log(S, "校验验证码"), S.code === 0 ? (s.validFlag = "已注册", s.disabledLoginRegister = !1, s.btnText = "登录", n.$store.commit("publishModel/SET_USER_INFO", S.data)) : S.code === -100 ? (s.validFlag = "未注册", s.disabledLoginRegister = !1, s.isShowAgreement = !0, sessionStorage.setItem("phone", JSON.stringify(c.phone)), s.btnText = "开通") : (s.validFlag = null, s.btnText = "登录 / 开通", s.disabledLoginRegister = !0, s.isShowAgreement = !1, setTimeout(() => {
            o(!0);
          }, 300));
        }).catch((S) => {
          console.log(S, "校验验证码失败"), s.disabledLoginRegister = !0;
        }));
      }
    }, a = () => {
      te(() => {
        n.$refs.phoneInputRef && n.$refs.phoneInputRef.focus();
      });
    }, o = (p) => {
      s.defaultBtn = !0, s.codeInputArr = [], p ? (s.codeValidator.status = "error", s.codeValidator.txt = "验证码错误，请重新输入") : (s.codeValidator.status = "", s.codeValidator.txt = ""), s.codeArr.forEach((h, X) => {
        te(() => {
          n.$refs["code-input" + X] && n.$refs["code-input" + X][0] ? n.$refs["code-input" + X][0].value = "" : n.$refs["code-input" + X].value = "";
        }), h.active = !1, h.disabled = !0;
      }), s.codeArr[0].active = !0, s.codeArr[0].disabled = !1, te(() => {
        n.$refs["code-input0"] && n.$refs["code-input0"][0] ? n.$refs["code-input0"][0].focus() : n.$refs["code-input0"].focus();
      });
    };
    const m = () => {
      s.validFlag === "已注册" ? n.$store.commit("publishModel/SET_LOGIN_FLAG", 1) : s.validFlag === "未注册" && (n.$store.commit("publishModel/SET_COMPONENT_VAR", {
        loginWay: "phone",
        isLoginRegister: !1,
        isBasicInfo: !0,
        isConcernWeChat: !1,
        // 控制关注公众号 
        isWeChatLogin: !1
        // 控制微信登录
      }), n.$store.commit("publishModel/SET_LOGIN_FLAG", 0));
    }, y = (p) => {
      p.keyCode === 8 && (s.isCaptchaInput = !1, s.codeBtnText = "获取验证码", o(), window.clearInterval(d.value));
    }, P = () => {
      l.value.validate((p) => {
        if (p)
          w(), s.tipText = "验证码已发送，有效期5分钟。如未收到，请尝试重新获取", s.isCaptchaInput = !0, o(), u.post({
            url: "jd",
            data: {
              cmd: "CONSOLE_M_MODELTEMPLATE_SEND_SMS",
              mobile: c.phone,
              type: "reg"
            }
          }).then((h) => {
            h.code !== "undefined" && h.code;
          }).catch((h) => {
          });
        else
          return s.tipText = "请使用手机号登录", s.isCaptchaInput = !1, !1;
      });
    }, w = () => {
      let p = 60;
      d.value = window.setInterval(() => {
        p === 0 ? (window.clearInterval(d.value), s.codeBtnText = "重新获取验证码", s.disabledCodeBtn = !1) : (s.codeBtnText = `${p}秒后重新获取`, s.disabledCodeBtn = !0, p--);
      }, 1e3);
    }, g = () => {
      window.open("https://www.yijingcloud.com/static/privacy-user.html");
    }, k = () => {
      s.isCaptchaInput = !1, s.codeBtnText = "获取验证码", c.captchaCode = "", s.codeInputArr = [], window.clearInterval(d.value);
    }, x = () => {
      n.$store.commit("publishModel/SET_COMPONENT_VAR", {
        loginWay: "weChat",
        isLoginRegister: !1,
        // 关闭手机号登录
        isWeChatLogin: !0,
        // 切换成微信登录
        isBasicInfo: !1,
        // 控制完善信息窗口
        isConcernWeChat: !1
        // 控制关注公众号 
      });
    };
    return {
      loginForm: c,
      loginRule: i,
      loginFormRef: l,
      intervalTimer: d,
      deletePhone: y,
      resetData: () => {
        s.isCaptchaInput = !1, s.tipText = "请使用手机号登录", s.codeBtnText = "获取验证码", c.captchaCode = "", s.codeInputArr = [], window.clearInterval(d.value), n.$refs.loginFormRef.resetFields(), n.$refs.loginFormRef.clearValidate();
      },
      inputFocus: a,
      ...le(s),
      codeInputValue: H,
      handleGetCode: P,
      // 获取验证码
      handleLoginRegister: m,
      userRegisterAgreement: g,
      handleClearPhone: k,
      handleWeChatLogin: x
    };
  }
}, gn = {
  class: "ch-details-box",
  "element-loading-background": "rgba(255, 255, 255, 0.7)"
}, xn = { class: "ch-box-title" }, wn = /* @__PURE__ */ O(
  "span",
  { style: { display: "block" } },
  "账号登录",
  -1
  /* HOISTED */
), Pn = { style: { display: "block" } }, yn = { class: "ch-box-main" }, On = { class: "phone-input" }, Hn = ["disabled", "onInput"], jn = /* @__PURE__ */ O(
  "div",
  { class: "code-input-seg" },
  null,
  -1
  /* HOISTED */
), zn = ["disabled", "onInput"], Ln = { class: "code-validator-txt" }, Xn = /* @__PURE__ */ O(
  "span",
  null,
  "注册即代表同意",
  -1
  /* HOISTED */
), Nn = /* @__PURE__ */ G("《用户注册协议》"), Tn = { class: "ch-box-footer" }, Dn = /* @__PURE__ */ O(
  "div",
  { class: "way" },
  [
    /* @__PURE__ */ O("span", { style: { display: "inline-block" } }),
    /* @__PURE__ */ O("span", { style: { display: "inline-block" } }, "更多登录方式"),
    /* @__PURE__ */ O("span", { style: { display: "inline-block" } })
  ],
  -1
  /* HOISTED */
), Sn = { class: "ch-btn" };
function kn(e, t, n, r, u, c) {
  const l = V("el-input"), d = V("awsui-button"), s = V("el-form-item"), b = V("el-button"), i = V("el-form"), H = Be("loading");
  return fe((z(), W("div", gn, [
    O("div", xn, [
      wn,
      O(
        "span",
        Pn,
        B(e.tipText),
        1
        /* TEXT */
      )
    ]),
    O("div", yn, [
      T(i, {
        ref: "loginFormRef",
        model: r.loginForm,
        rules: r.loginRule,
        onSubmit: t[5] || (t[5] = wt(() => {
        }, ["prevent"]))
      }, {
        default: N(() => [
          T(s, {
            style: { "margin-bottom": "0" },
            prop: "phone"
          }, {
            default: N(() => [
              O("div", On, [
                T(l, {
                  ref: "phoneInputRef",
                  modelValue: r.loginForm.phone,
                  "onUpdate:modelValue": t[0] || (t[0] = (a) => r.loginForm.phone = a),
                  modelModifiers: { trim: !0 },
                  clearable: "",
                  onKeydown: t[1] || (t[1] = (a) => r.deletePhone(a)),
                  onClear: r.handleClearPhone,
                  autofocus: !0,
                  size: "default",
                  onInput: t[2] || (t[2] = () => {
                    r.loginForm.phone = r.loginForm.phone.replace(/[^\d]/g, ""), e.showCodeBtn = !0;
                  }),
                  placeholder: "请输入手机号"
                }, null, 8, ["modelValue", "onClear"]),
                fe(T(d, {
                  onClick: r.handleGetCode,
                  disabled: e.disabledCodeBtn,
                  type: "text"
                }, {
                  default: N(() => [
                    G(
                      B(e.codeBtnText),
                      1
                      /* TEXT */
                    )
                  ]),
                  _: 1
                  /* STABLE */
                }, 8, ["onClick", "disabled"]), [
                  [ke, e.showCodeBtn]
                ])
              ])
            ]),
            _: 1
            /* STABLE */
          }),
          e.isCaptchaInput ? (z(), Y(s, {
            key: 0,
            class: "ch-captcha-item"
          }, {
            default: N(() => [
              O(
                "div",
                {
                  class: ve(["ch-code-box", e.codeValidator.status === "error" ? "code-box-error" : ""])
                },
                [
                  (z(!0), W(
                    re,
                    null,
                    ne(e.codeArr.slice(0, 3), (a, o) => (z(), W("input", {
                      type: "tel",
                      key: o,
                      class: ve(["code-input", [{ active: a.active, disabled: a.disabled }]]),
                      ref_for: !0,
                      ref: "code-input" + o,
                      disabled: a.disabled,
                      maxlength: "1",
                      onFocus: t[3] || (t[3] = (m) => e.mobileFocus = !1),
                      onInput: (m) => r.codeInputValue(m, o)
                    }, null, 42, Hn))),
                    128
                    /* KEYED_FRAGMENT */
                  )),
                  jn,
                  (z(!0), W(
                    re,
                    null,
                    ne(e.codeArr.slice(3, 6), (a, o) => (z(), W("input", {
                      type: "tel",
                      key: o,
                      class: ve(["code-input", [{ active: a.active, disabled: a.disabled }]]),
                      ref_for: !0,
                      ref: "code-input" + (o + 3),
                      disabled: a.disabled,
                      maxlength: "1",
                      onFocus: t[4] || (t[4] = (m) => e.mobileFocus = !1),
                      onInput: (m) => r.codeInputValue(m, o + 3)
                    }, null, 42, zn))),
                    128
                    /* KEYED_FRAGMENT */
                  ))
                ],
                2
                /* CLASS */
              ),
              O(
                "div",
                Ln,
                B(e.codeValidator.txt),
                1
                /* TEXT */
              )
            ]),
            _: 1
            /* STABLE */
          })) : C("v-if", !0),
          T(s, { style: { "margin-bottom": "0" } }, {
            default: N(() => [
              T(b, {
                class: "login-register-btn",
                disabled: e.disabledLoginRegister,
                onClick: r.handleLoginRegister,
                type: "primary"
              }, {
                default: N(() => [
                  G(
                    B(e.btnText),
                    1
                    /* TEXT */
                  )
                ]),
                _: 1
                /* STABLE */
              }, 8, ["disabled", "onClick"])
            ]),
            _: 1
            /* STABLE */
          }),
          e.isShowAgreement ? (z(), Y(s, { key: 1 }, {
            default: N(() => [
              Xn,
              T(d, {
                onClick: r.userRegisterAgreement,
                type: "text"
              }, {
                default: N(() => [
                  Nn
                ]),
                _: 1
                /* STABLE */
              }, 8, ["onClick"])
            ]),
            _: 1
            /* STABLE */
          })) : C("v-if", !0)
        ]),
        _: 1
        /* STABLE */
      }, 8, ["model", "rules"])
    ]),
    O("div", Tn, [
      Dn,
      O("div", Sn, [
        T(d, {
          icon: "",
          onClick: r.handleWeChatLogin,
          circle: ""
        }, null, 8, ["onClick"])
      ])
    ])
  ])), [
    [H, e.loginLoading]
  ]);
}
const Vn = /* @__PURE__ */ xe(mn, [["render", kn], ["__file", "E:/AWScode/awsui/awsui-biz/packages/model-publishing/src/components/login-dialog/login-register.vue"]]), Wn = {
  name: "BasicInfo",
  props: {},
  components: {},
  setup(e, t) {
    const { proxy: n, appContext: r } = ge(), u = r.config.globalProperties.awsuiaxios;
    let c = ce(null), l = ce(null), d = Q({
      userName: "",
      unitOrSchool: "",
      nickname: "",
      // 昵称
      industry: "",
      // 行业
      position: "",
      // 职务
      phone: "",
      // 手机号e
      captchaCode: ""
    }), b = Q({
      userName: [
        { required: !0, message: "请输入您的姓名", trigger: "blur" }
      ],
      unitOrSchool: [
        { required: !0, message: "请输入您的单位/学校", trigger: "blur" }
      ],
      phone: [
        { validator: (p, h, X) => {
          h ? /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/.test(h) ? (i.disabledCodeBtn = !1, X()) : i.disabledCodeBtn = !0 : (i.disabledCodeBtn = !0, i.showCodeBtn = !0);
        }, trigger: ["blur", "change"] }
      ]
    }), i = Q({
      basicLoading: !1,
      tipText: "请填写您的基本信息",
      disabledCodeBtn: !0,
      codeBtnText: "获取验证码",
      disabledNextStep: !0,
      disabledStatus: !0,
      showCodeBtn: !1,
      codeArr: [],
      codeCurrenIndex: 0,
      //当前输入的验证码框index
      mobileFocus: !1,
      //是否获取焦点
      codeInputArr: [],
      codeValidator: {
        status: "",
        txt: ""
      },
      isCaptchaInput: !1,
      // 控制 验证input框显示
      industryOptions: [],
      scene: "",
      // 注册所需要的参数
      userId: ""
    }), H = F({
      get: () => n.$store.state.publishModel.componentVar.loginWay
    });
    Ve([() => d.userName, () => d.unitOrSchool], (p, h) => {
      console.log(p, "新值", "旧值", h), p.every((X) => X !== "") ? i.disabledNextStep = !1 : i.disabledNextStep = !0;
    }), Ie(() => {
      i.basicLoading = !0, setTimeout(() => {
        i.basicLoading = !1;
      }, 300), i.scene = JSON.parse(sessionStorage.getItem("scene")), a();
    }), lr(() => {
      for (var p = 0; p < 6; p++)
        i.codeArr.push({
          value: p,
          active: !1,
          disabled: !0
        });
      document.addEventListener("keydown", (h) => {
        h = h || event, h.keyCode === 8 && i.isCaptchaInput && !i.mobileFocus && (i.codeArr[i.codeCurrenIndex].active = !0, i.codeArr[i.codeCurrenIndex].disabled = !1, i.codeCurrenIndex !== i.codeArr.length - 1 && (i.codeArr[i.codeCurrenIndex + 1].active = !1, i.codeArr[i.codeCurrenIndex + 1].disabled = !0), te(() => {
          n.$refs["code-input" + i.codeCurrenIndex] && n.$refs["code-input" + i.codeCurrenIndex][0] ? (n.$refs["code-input" + i.codeCurrenIndex][0].value = "", n.$refs["code-input" + i.codeCurrenIndex][0].focus()) : (n.$refs["code-input" + i.codeCurrenIndex].value = "", n.$refs["code-input" + i.codeCurrenIndex].focus()), i.codeCurrenIndex > 0 ? i.codeCurrenIndex-- : i.codeCurrenIndex = 0;
        }));
      }), document.addEventListener("paste", (h) => {
        if (i.isCaptchaInput && !i.mobileFocus) {
          i.codeInputArr = [];
          let S = (h.clipboardData || window.clipboardData).getData("text").split("");
          S.length === 6 && (i.codeInputArr = S, i.codeInputArr.forEach((D, v) => {
            i.codeArr[v].active = !0, i.codeArr[v].disabled = !0, v === i.codeArr.length - 1 && (i.codeArr[v].active = !0, i.codeArr[v].disabled = !1), te(() => {
              Number.isNaN(parseInt(D)) || (n.$refs["code-input" + v] && n.$refs["code-input" + v][0] ? n.$refs["code-input" + v][0].value = parseInt(D) : n.$refs["code-input" + v].value = parseInt(D), v === i.codeArr.length - 1 && (n.$refs["code-input" + v] && n.$refs["code-input" + v][0] ? n.$refs["code-input" + v][0].focus() : n.$refs["code-input" + v].focus()));
            });
          }));
        }
      });
    });
    const a = () => {
      u.post({
        url: "jd",
        data: {
          cmd: "CONSOLE_APPSTORE_CONFIG_INFO"
        }
      }).then((p) => {
        p.code === 0 && (i.industryOptions = p.data.industry, d.nickname = p.data.user.userName, d.userName = p.data.user.userName, d.unitOrSchool = p.data.user.companyName);
      }).catch((p) => {
        console.log(p, "获取行业下拉数据失败");
      });
    }, o = () => {
      c.value.validate((p) => {
        if (p)
          m(), i.isCaptchaInput = !0, w(), u.post({
            url: "jd",
            data: {
              cmd: "CONSOLE_M_MODELTEMPLATE_SEND_SMS",
              mobile: d.phone,
              type: "reg"
            }
          }).then((h) => {
            h.code !== "undefined" && h.code === 0 && console.log("获取验证码信息失败");
          }).catch((h) => {
            console.log(h, "获取验证码信息失败");
          });
        else
          return i.isCaptchaInput = !1, !1;
      });
    };
    let m = () => {
      let p = 60;
      l.value = window.setInterval(() => {
        p === 0 ? (window.clearInterval(l.value), i.codeBtnText = "重新获取验证码", i.disabledCodeBtn = !1) : (i.codeBtnText = `${p}秒后重新获取`, i.disabledCodeBtn = !0, p--);
      }, 1e3);
    }, y = () => {
      let p = {
        username: d.userName,
        mobile: d.phone || JSON.parse(sessionStorage.getItem("phone")),
        nickName: d.nickname || d.userName,
        industry: d.industry,
        position: d.position,
        employer: d.unitOrSchool
      };
      u.post({
        url: "jd",
        data: {
          cmd: "CONSOLE_M_MODELTEMPLATE_ADD_USER",
          user: JSON.stringify(p),
          scene: JSON.parse(sessionStorage.getItem("scene"))
        }
      }).then((h) => {
        console.log(h, "添加用户成功"), h.code === 0 ? (n.$store.commit("publishModel/SET_USER_INFO", h.data), n.$store.commit("publishModel/SET_LOGIN_FLAG", 1), n.$message({
          type: "success",
          message: "注册成功",
          customClass: "top-msg",
          showClose: !0
        })) : (n.$store.commit("publishModel/SET_LOGIN_FLAG", 0), n.$message({
          type: "error",
          message: h.msg,
          customClass: "top-msg",
          showClose: !0
        }));
      }).catch((h) => {
        console.log(h, "添加用户失败");
      });
    }, P = (p, h) => {
      if (p.target.value = p.target.value.replace(/[^\d]/g, ""), p.target.value !== "") {
        i.codeValidator.status = "", i.codeValidator.txt = "", i.codeCurrenIndex = h;
        let X = !1;
        i.codeArr[h].active = !0, i.codeArr[h].disabled = !0, h !== i.codeArr.length - 1 && (i.codeArr[h + 1].active = !0, i.codeArr[h + 1].disabled = !1, te(() => {
          n.$refs["code-input" + (h + 1)] && n.$refs["code-input" + (h + 1)][0] ? n.$refs["code-input" + (h + 1)][0].focus() : n.$refs["code-input" + (h + 1)].focus();
        })), i.codeInputArr.length < 6 && (i.codeInputArr.length > 0 && i.codeInputArr.forEach((S, D) => {
          if (D === h) {
            i.codeInputArr[D] = p.target.value, X = !0;
            return;
          }
        }), X || i.codeInputArr.push(p.target.value)), i.codeInputArr.length === 6 && (i.codeInputArr.forEach((S, D) => {
          D === h && p.target.value;
        }), d.captchaCode = i.codeInputArr.join(""), u.post({
          url: "jd",
          data: {
            cmd: "CONSOLE_M_MODELTEMPLATE_USER_LOGIN",
            code: d.captchaCode,
            mobile: d.phone
          }
        }).then((S) => {
          console.log(S, "校验验证码"), S.code === 0 ? (i.disabledStatus = !0, setTimeout(() => {
            w("already");
          }, 300)) : S.code === -100 ? i.disabledStatus = !1 : (S.code !== 30003 && n.$message({
            type: "error",
            message: S.msg,
            customClass: "top-msg",
            showClose: !0
          }), i.disabledStatus = !0, setTimeout(() => {
            w("error");
          }, 300));
        }).catch((S) => {
          i.disabledStatus = !0, n.$message({
            type: "error",
            message: S.msg,
            customClass: "top-msg",
            showClose: !0
          });
        }));
      }
    }, w = (p) => {
      i.codeInputArr = [], p === "error" ? (i.codeValidator.status = "error", i.codeValidator.txt = "验证码错误，请重新输入") : p === "already" ? (i.codeValidator.status = "", i.codeValidator.txt = "该手机号已注册,请重新输入手机号") : (i.codeValidator.status = "", i.codeValidator.txt = ""), i.codeArr.forEach((h, X) => {
        te(() => {
          n.$refs["code-input" + X] && n.$refs["code-input" + X][0] ? n.$refs["code-input" + X][0].value = "" : n.$refs["code-input" + X].value = "";
        }), h.active = !1, h.disabled = !0;
      }), i.codeArr[0].active = !0, i.codeArr[0].disabled = !1, te(() => {
        n.$refs["code-input0"] && n.$refs["code-input0"][0] ? n.$refs["code-input0"][0].focus() : n.$refs["code-input0"].focus();
      });
    };
    const g = () => {
      H.value === "weChat" ? (console.log("添加用户谢信息"), y()) : H.value === "phone" && (sessionStorage.setItem("userParams", JSON.stringify({
        username: d.userName,
        mobile: d.phone || JSON.parse(sessionStorage.getItem("phone")),
        nickName: d.nickname,
        industry: d.industry,
        position: d.position,
        employer: d.unitOrSchool
      })), n.$store.commit("publishModel/SET_COMPONENT_VAR", {
        loginWay: "phone",
        isBasicInfo: !1,
        // 关闭完善信息窗口
        isConcernWeChat: !0
        // 打开关注公众号窗口
      }));
    }, k = (p) => {
      p.keyCode === 8 && (i.isCaptchaInput = !1, i.codeBtnText = "获取验证码", d.captchaCode = "", i.codeInputArr = [], window.clearInterval(l.value));
    }, x = () => {
      i.isCaptchaInput = !1, i.codeBtnText = "获取验证码", d.captchaCode = "", i.codeInputArr = [], window.clearInterval(l.value);
    };
    return {
      basicFormRef: c,
      basicForm: d,
      basicRules: b,
      intervalTimer: l,
      resetData: () => {
        i.isCaptchaInput = !1, i.codeBtnText = "获取验证码", d.captchaCode = "", i.codeInputArr = [], window.clearInterval(l.value), n.$refs.basicFormRef.resetFields(), n.$refs.basicFormRef.clearValidate();
      },
      loginWay: H,
      // 用户的登录方式
      ...le(i),
      codeInputValue: P,
      handleAddUserInfo: y,
      handleNextStep: g,
      handleGetCode: o,
      handleClearPhone: x,
      deletePhone: k
    };
  }
}, Mn = {
  class: "ch-basic-info",
  "element-loading-background": "rgba(255, 255, 255, 0.7)"
}, Cn = { class: "ch-basic-title" }, Rn = /* @__PURE__ */ O(
  "span",
  { style: { display: "block" } },
  "免费升级为个人开发者",
  -1
  /* HOISTED */
), qn = { style: { display: "block" } }, Yn = { class: "ch-basic-main" }, Zn = /* @__PURE__ */ O(
  "span",
  { class: "valid-icon" },
  null,
  -1
  /* HOISTED */
), Fn = /* @__PURE__ */ O(
  "span",
  { class: "valid-icon" },
  null,
  -1
  /* HOISTED */
), Gn = { class: "phone-input" }, En = /* @__PURE__ */ O(
  "span",
  { class: "valid-icon" },
  null,
  -1
  /* HOISTED */
), In = ["disabled", "onInput"], Bn = /* @__PURE__ */ O(
  "div",
  { class: "code-input-seg" },
  null,
  -1
  /* HOISTED */
), Un = ["disabled", "onInput"], An = { class: "code-validator-txt" }, Jn = { class: "ch-basic-footer" };
function Kn(e, t, n, r, u, c) {
  const l = V("el-input"), d = V("el-form-item"), s = V("el-option"), b = V("el-select"), i = V("awsui-button"), H = V("el-form"), a = V("el-button"), o = Be("loading");
  return fe((z(), W("div", Mn, [
    O("div", Cn, [
      Rn,
      O(
        "span",
        qn,
        B(e.tipText),
        1
        /* TEXT */
      )
    ]),
    O("div", Yn, [
      T(H, {
        class: "basic-form",
        ref: "basicFormRef",
        model: r.basicForm,
        rules: r.basicRules,
        onSubmit: t[10] || (t[10] = wt(() => {
        }, ["prevent"])),
        size: "default"
      }, {
        default: N(() => [
          T(d, {
            class: "username-item",
            label: "",
            prop: "userName"
          }, {
            default: N(() => [
              Zn,
              T(l, {
                modelValue: r.basicForm.userName,
                "onUpdate:modelValue": t[0] || (t[0] = (m) => r.basicForm.userName = m),
                modelModifiers: { trim: !0 },
                clearable: "",
                placeholder: "姓名"
              }, null, 8, ["modelValue"])
            ]),
            _: 1
            /* STABLE */
          }),
          T(d, {
            class: "unitOrSchool-item",
            label: "",
            prop: "unitOrSchool"
          }, {
            default: N(() => [
              Fn,
              T(l, {
                modelValue: r.basicForm.unitOrSchool,
                "onUpdate:modelValue": t[1] || (t[1] = (m) => r.basicForm.unitOrSchool = m),
                modelModifiers: { trim: !0 },
                clearable: "",
                placeholder: "单位/学校"
              }, null, 8, ["modelValue"])
            ]),
            _: 1
            /* STABLE */
          }),
          T(d, { prop: "nickname" }, {
            default: N(() => [
              T(l, {
                modelValue: r.basicForm.nickname,
                "onUpdate:modelValue": t[2] || (t[2] = (m) => r.basicForm.nickname = m),
                modelModifiers: { trim: !0 },
                clearable: "",
                placeholder: "昵称"
              }, null, 8, ["modelValue"])
            ]),
            _: 1
            /* STABLE */
          }),
          T(d, null, {
            default: N(() => [
              T(b, {
                modelValue: r.basicForm.industry,
                "onUpdate:modelValue": t[3] || (t[3] = (m) => r.basicForm.industry = m),
                clearable: "",
                placeholder: "请选择行业",
                style: { width: "100%" }
              }, {
                default: N(() => [
                  (z(!0), W(
                    re,
                    null,
                    ne(e.industryOptions, (m, y) => (z(), Y(s, {
                      key: y,
                      label: m.NAME,
                      value: m.ITEMNO
                    }, null, 8, ["label", "value"]))),
                    128
                    /* KEYED_FRAGMENT */
                  ))
                ]),
                _: 1
                /* STABLE */
              }, 8, ["modelValue"])
            ]),
            _: 1
            /* STABLE */
          }),
          T(d, { prop: "position" }, {
            default: N(() => [
              T(l, {
                modelValue: r.basicForm.position,
                "onUpdate:modelValue": t[4] || (t[4] = (m) => r.basicForm.position = m),
                modelModifiers: { trim: !0 },
                clearable: "",
                placeholder: "职务"
              }, null, 8, ["modelValue"])
            ]),
            _: 1
            /* STABLE */
          }),
          r.loginWay === "weChat" ? (z(), Y(d, {
            key: 0,
            class: "phone-form-item",
            style: { "margin-bottom": "0" },
            prop: "phone"
          }, {
            default: N(() => [
              O("div", Gn, [
                En,
                T(l, {
                  modelValue: r.basicForm.phone,
                  "onUpdate:modelValue": t[5] || (t[5] = (m) => r.basicForm.phone = m),
                  modelModifiers: { trim: !0 },
                  clearable: "",
                  onKeydown: t[6] || (t[6] = (m) => r.deletePhone(m)),
                  onClear: r.handleClearPhone,
                  size: "default",
                  onInput: t[7] || (t[7] = () => {
                    r.basicForm.phone = r.basicForm.phone.replace(/[^\d]/g, ""), e.showCodeBtn = !0;
                  }),
                  placeholder: "请输入手机号"
                }, null, 8, ["modelValue", "onClear"]),
                fe(T(i, {
                  onClick: r.handleGetCode,
                  disabled: e.disabledCodeBtn,
                  type: "text"
                }, {
                  default: N(() => [
                    G(
                      B(e.codeBtnText),
                      1
                      /* TEXT */
                    )
                  ]),
                  _: 1
                  /* STABLE */
                }, 8, ["onClick", "disabled"]), [
                  [ke, e.showCodeBtn]
                ])
              ])
            ]),
            _: 1
            /* STABLE */
          })) : C("v-if", !0),
          e.isCaptchaInput ? (z(), Y(d, {
            key: 1,
            class: "ch-captcha-item",
            style: { "margin-bottom": "0" }
          }, {
            default: N(() => [
              O(
                "div",
                {
                  class: ve(["code-box", e.codeValidator.status === "error" ? "code-box-error" : ""])
                },
                [
                  (z(!0), W(
                    re,
                    null,
                    ne(e.codeArr.slice(0, 3), (m, y) => (z(), W("input", {
                      type: "tel",
                      key: y,
                      class: ve(["code-input", [{ active: m.active, disabled: m.disabled }]]),
                      ref_for: !0,
                      ref: "code-input" + y,
                      disabled: m.disabled,
                      maxlength: "1",
                      onFocus: t[8] || (t[8] = (P) => e.mobileFocus = !1),
                      onInput: (P) => r.codeInputValue(P, y)
                    }, null, 42, In))),
                    128
                    /* KEYED_FRAGMENT */
                  )),
                  Bn,
                  (z(!0), W(
                    re,
                    null,
                    ne(e.codeArr.slice(3, 6), (m, y) => (z(), W("input", {
                      type: "tel",
                      key: y,
                      class: ve(["code-input", [{ active: m.active, disabled: m.disabled }]]),
                      ref_for: !0,
                      ref: "code-input" + (y + 3),
                      disabled: m.disabled,
                      maxlength: "1",
                      onFocus: t[9] || (t[9] = (P) => e.mobileFocus = !1),
                      onInput: (P) => r.codeInputValue(P, y + 3)
                    }, null, 42, Un))),
                    128
                    /* KEYED_FRAGMENT */
                  ))
                ],
                2
                /* CLASS */
              ),
              O(
                "div",
                An,
                B(e.codeValidator.txt),
                1
                /* TEXT */
              )
            ]),
            _: 1
            /* STABLE */
          })) : C("v-if", !0)
        ]),
        _: 1
        /* STABLE */
      }, 8, ["model", "rules"])
    ]),
    O("div", Jn, [
      T(a, {
        class: "next-step",
        disabled: r.loginWay === "weChat" ? e.disabledStatus : e.disabledNextStep,
        onClick: r.handleNextStep,
        type: "primary"
      }, {
        default: N(() => [
          G(
            B(r.loginWay === "weChat" ? "完成" : "下一步 （1/2）"),
            1
            /* TEXT */
          )
        ]),
        _: 1
        /* STABLE */
      }, 8, ["disabled", "onClick"])
    ])
  ])), [
    [o, e.basicLoading]
  ]);
}
const Qn = /* @__PURE__ */ xe(Wn, [["render", Kn], ["__file", "E:/AWScode/awsui/awsui-biz/packages/model-publishing/src/components/login-dialog/basic-info.vue"]]), _n = {
  name: "BasicInfo",
  props: {},
  setup(e, t) {
    const { proxy: n, appContext: r } = ge(), u = r.config.globalProperties.awsuiaxios;
    let c = Q({
      expire_seconds: 604800,
      scene: "",
      ticket: "",
      url: "",
      source: "yijingcloud"
    }), l = Q({
      concernLoading: !1,
      tipText1: "微信扫码关注易鲸云公众号",
      tipText2: "快速获得审核结果",
      disabledCodeBtn: !0,
      tipText: "请关注易鲸云微信公众号",
      qrCodeUrl: "",
      isShowMask: !1,
      isShowRefresh: !0,
      isConcern: !1,
      timer: null
    });
    Ie(() => {
      l.concernLoading = !0, s(), setTimeout(() => {
        l.concernLoading = !1;
      }, 300);
    });
    const d = () => {
      b();
    }, s = () => {
      u.post({
        url: "jd",
        data: {
          cmd: "CONSOLE_M_MODELTEMPLATE_GETQRCODE"
        }
      }).then((o) => {
        o.code !== "undefined" && o.code === 0 && (c = o.data, o.data.source === "aws" ? (l.tipText1 = "微信扫码关注AWS PaaS公众号", l.tipText = "请关注AWS PaaS微信公众号") : (l.tipText1 = "微信扫码关注易鲸云公众号", l.tipText = "请关注易鲸云微信公众号"), sessionStorage.setItem("scene", JSON.stringify(c.scene)), l.qrCodeUrl = `https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${c.ticket}`, l.timer = window.setInterval(() => {
          i(o.data.scene);
        }, 1500));
      });
    };
    let b = () => {
      l.concernLoading = !0, u.post({
        url: "jd",
        data: {
          cmd: "CONSOLE_M_MODELTEMPLATE_ADD_USER",
          user: sessionStorage.getItem("userParams"),
          scene: JSON.parse(sessionStorage.getItem("scene"))
        }
      }).then((o) => {
        console.log(o, "添加用户成功"), o.code === 0 ? setTimeout(() => {
          l.concernLoading = !1, n.$store.commit("publishModel/SET_LOGIN_FLAG", 1), n.$store.commit("publishModel/SET_USER_INFO", o.data), n.$message({
            type: "success",
            message: "注册成功",
            customClass: "top-msg",
            showClose: !0
          });
        }, 500) : setTimeout(() => {
          l.concernLoading = !1, n.$store.commit("publishModel/SET_LOGIN_FLAG", 0), n.$message({
            type: "error",
            message: o.msg,
            customClass: "top-msg",
            showClose: !0
          });
        }, 500);
      }).catch((o) => {
        console.log(o, "添加用户失败");
      });
    };
    const i = (o) => {
      u.post({
        url: "jd",
        data: {
          cmd: "CONSOLE_M_MODELTEMPLATE_SCAN",
          scene: o
        }
      }).then((m) => {
        switch (m.code) {
          case 20001:
            l.isShowMask = !0, l.isConcern = !1, l.isShowRefresh = !0, n.$store.commit("publishModel/SET_LOGIN_FLAG", 0);
            break;
          case -100:
            window.clearInterval(l.timer), l.disabledCodeBtn = !1, l.isConcern = !0, l.isShowRefresh = !1, l.tipText1 = "关注成功", l.tipText2 = "审核结果请查看微信公众号";
            break;
          case 0:
            window.clearInterval(l.timer), l.disabledCodeBtn = !0, l.isShowRefresh = !0, l.isConcern = !1, l.tipText2 = "该微信号已绑定其他账号,请重新扫码", n.$store.commit("publishModel/SET_LOGIN_FLAG", 0), console.log("扫描二维码,登录用户信息");
            break;
        }
      }).catch((m) => {
        console.log(m, "扫描二维码失败");
      });
    }, H = () => {
      clearInterval(l.timer), l.isShowMask = !1, s();
    }, a = () => {
      window.clearInterval(l.timer), l.tipText1 = "微信扫码关注易鲸云公众号", l.tipText2 = "快速获得审核结果", l.disabledCodeBtn = !0, l.tipText = "请关注易鲸云微信公众号", l.qrCodeUrl = "", l.isShowMask = !1, l.isShowRefresh = !0, l.isConcern = !1;
    };
    return {
      ...le(l),
      resetData: a,
      handleAddUserInfo: b,
      handelComplete: d,
      handelScanCode: i,
      // 扫描二维码
      handleRefreshCode: H
      // 二维码过期,刷新二维码
    };
  }
}, $n = {
  class: "ch-concern-weChat",
  "element-loading-background": "rgba(255, 255, 255, 0.7)"
}, ea = { class: "ch-weChat-title" }, ta = /* @__PURE__ */ O(
  "span",
  { style: { display: "block" } },
  "免费升级为个人开发者",
  -1
  /* HOISTED */
), ra = { style: { display: "block" } }, na = { class: "ch-weChat-main" }, aa = { class: "qr-only-code" }, sa = { class: "qr-code-img" }, oa = {
  key: 0,
  class: "mask"
}, la = /* @__PURE__ */ O(
  "span",
  null,
  [
    /* @__PURE__ */ G("您的二维码已失效，"),
    /* @__PURE__ */ O("br"),
    /* @__PURE__ */ G("请点击下方刷新按钮")
  ],
  -1
  /* HOISTED */
), ia = [
  la
], ua = ["src"], da = { class: "tip-content" }, ca = {
  key: 0,
  class: "awsui-iconfont",
  style: { "margin-right": "6px", color: "#73C51C" }
}, fa = /* @__PURE__ */ O(
  "i",
  { class: "awsui-iconfont" },
  "",
  -1
  /* HOISTED */
), va = /* @__PURE__ */ G("刷新"), pa = { class: "tipText2" }, ha = { class: "ch-weChat-footer" }, ba = /* @__PURE__ */ G("完成");
function ma(e, t, n, r, u, c) {
  const l = V("awsui-button"), d = V("el-button"), s = Be("loading");
  return fe((z(), W("div", $n, [
    O("div", ea, [
      ta,
      O(
        "span",
        ra,
        B(e.tipText),
        1
        /* TEXT */
      )
    ]),
    O("div", na, [
      O("div", aa, [
        O("div", sa, [
          e.isShowMask ? (z(), W("div", oa, ia)) : C("v-if", !0),
          e.qrCodeUrl ? (z(), W("img", {
            key: 1,
            src: e.qrCodeUrl
          }, null, 8, ua)) : C("v-if", !0)
        ]),
        O("div", da, [
          O(
            "span",
            {
              class: ve(["tipText1", { "concern-success": e.isConcern }])
            },
            [
              e.isConcern ? (z(), W("i", ca, "")) : C("v-if", !0),
              G(
                B(e.tipText1) + " ",
                1
                /* TEXT */
              ),
              e.isShowRefresh ? (z(), Y(l, {
                key: 1,
                onClick: r.handleRefreshCode,
                style: { "font-size": "14px" },
                type: "text"
              }, {
                default: N(() => [
                  fa,
                  va
                ]),
                _: 1
                /* STABLE */
              }, 8, ["onClick"])) : C("v-if", !0)
            ],
            2
            /* CLASS */
          ),
          O(
            "span",
            pa,
            B(e.tipText2),
            1
            /* TEXT */
          )
        ])
      ])
    ]),
    O("div", ha, [
      T(d, {
        class: "complete-btn",
        disabled: e.disabledCodeBtn,
        onClick: r.handelComplete,
        type: "primary"
      }, {
        default: N(() => [
          ba
        ]),
        _: 1
        /* STABLE */
      }, 8, ["disabled", "onClick"])
    ])
  ])), [
    [s, e.concernLoading]
  ]);
}
const ga = /* @__PURE__ */ xe(_n, [["render", ma], ["__file", "E:/AWScode/awsui/awsui-biz/packages/model-publishing/src/components/login-dialog/concern-wechat.vue"]]), xa = {
  name: "BasicInfo",
  props: {},
  setup(e, t) {
    const { proxy: n, appContext: r } = ge(), u = r.config.globalProperties.awsuiaxios;
    let c = Q({
      weChatLoading: !1,
      disabledCodeBtn: !0,
      titleTipText: "请使用微信扫码登录",
      qrCodeUrl: "",
      isShowMask: !1,
      timer: null
    }), l = Q({
      expire_seconds: 604800,
      scene: "",
      source: "yijingcloud",
      ticket: "",
      url: ""
    });
    Ie(() => {
      c.weChatLoading = !0, setTimeout(() => {
        c.weChatLoading = !1;
      }, 300), d();
    });
    const d = () => {
      u.post({
        url: "jd",
        data: {
          cmd: "CONSOLE_M_MODELTEMPLATE_GETQRCODE"
        }
      }).then((a) => {
        a.code !== "undefined" && a.code === 0 && (l = a.data, sessionStorage.setItem("scene", JSON.stringify(l.scene)), c.qrCodeUrl = `https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${l.ticket}`, c.timer = window.setInterval(() => {
          s(a.data.scene);
        }, 1500));
      }).catch((a) => {
        console.log(a);
      });
    }, s = (a) => {
      u.post({
        url: "jd",
        data: {
          cmd: "CONSOLE_M_MODELTEMPLATE_SCAN",
          scene: a
        }
      }).then((o) => {
        switch (o.code !== "undefined" && o.code === 0 && console.log(o, "扫描二维码"), o.code) {
          case 20001:
            c.isShowMask = !0, n.$store.commit("publishModel/SET_LOGIN_FLAG", 0);
            break;
          case -100:
            window.clearInterval(c.timer), n.$store.commit("publishModel/SET_LOGIN_FLAG", 0), n.$store.commit("publishModel/SET_COMPONENT_VAR", {
              loginWay: "weChat",
              // 登录方式
              isLoginRegister: !1,
              // 控制手机号登录
              isBasicInfo: !0,
              // 控制完善信息窗口
              isConcernWeChat: !1,
              // 控制关注公众号    
              isWeChatLogin: !1
              // 控制微信登录
            });
            break;
          case 0:
            window.clearInterval(c.timer), n.$store.commit("publishModel/SET_LOGIN_FLAG", 1), n.$store.commit("publishModel/SET_USER_INFO", o.data), console.log("扫描二维码,登录用户信息");
            break;
        }
      }).catch((o) => {
        console.log(o, "扫描二维码失败");
      });
    }, b = () => {
      window.clearInterval(c.timer), n.$store.commit("publishModel/SET_COMPONENT_VAR", {
        loginWay: "phone",
        isLoginRegister: !0,
        // 关闭手机号登录
        isWeChatLogin: !1
        // 切换成微信登录
      });
    }, i = () => {
      clearInterval(c.timer), c.isShowMask = !1, d();
    }, H = () => {
      window.clearInterval(c.timer), c.titleTipText = "请使用微信扫码登录", l.source = "yijingcloud";
    };
    return {
      ...le(c),
      weChatInfo: l,
      handelScanCode: s,
      // 扫描二维码
      handleRefreshCode: i,
      // 二维码过期,刷新二维码
      handlePhoneLogin: b,
      // 更多登录方式(手机)
      resetData: H
    };
  }
}, wa = {
  class: "ch-weChat-login",
  "element-loading-background": "rgba(255, 255, 255, 0.7)"
}, Pa = { class: "ch-weChat-title" }, ya = /* @__PURE__ */ O(
  "span",
  { style: { display: "block" } },
  "微信登录",
  -1
  /* HOISTED */
), Oa = { style: { display: "block" } }, Ha = { class: "ch-weChat-main" }, ja = { class: "qr-only-code" }, za = { class: "qr-code-img" }, La = {
  key: 0,
  class: "mask"
}, Xa = /* @__PURE__ */ O(
  "span",
  null,
  [
    /* @__PURE__ */ G("您的二维码已失效，"),
    /* @__PURE__ */ O("br"),
    /* @__PURE__ */ G("请点击下方刷新按钮")
  ],
  -1
  /* HOISTED */
), Na = [
  Xa
], Ta = ["src"], Da = { class: "tip-content" }, Sa = { class: "contentTipText1" }, ka = /* @__PURE__ */ O(
  "i",
  { class: "awsui-iconfont" },
  "",
  -1
  /* HOISTED */
), Va = /* @__PURE__ */ G("刷新"), Wa = { class: "contentTipText2" }, Ma = { class: "ch-weChat-footer" }, Ca = /* @__PURE__ */ O(
  "div",
  { class: "way" },
  [
    /* @__PURE__ */ O("span", { style: { display: "inline-block" } }),
    /* @__PURE__ */ O("span", { style: { display: "inline-block" } }, "更多登录方式"),
    /* @__PURE__ */ O("span", { style: { display: "inline-block" } })
  ],
  -1
  /* HOISTED */
), Ra = { class: "btn" };
function qa(e, t, n, r, u, c) {
  const l = V("awsui-button"), d = Be("loading");
  return fe((z(), W("div", wa, [
    O("div", Pa, [
      ya,
      O(
        "span",
        Oa,
        B(e.titleTipText),
        1
        /* TEXT */
      )
    ]),
    O("div", Ha, [
      O("div", ja, [
        O("div", za, [
          e.isShowMask ? (z(), W("div", La, Na)) : C("v-if", !0),
          e.qrCodeUrl ? (z(), W("img", {
            key: 1,
            src: e.qrCodeUrl
          }, null, 8, Ta)) : C("v-if", !0)
        ]),
        O("div", Da, [
          O("span", Sa, [
            T(l, {
              onClick: r.handleRefreshCode,
              style: { "font-size": "14px" },
              type: "text"
            }, {
              default: N(() => [
                ka,
                Va
              ]),
              _: 1
              /* STABLE */
            }, 8, ["onClick"])
          ]),
          O(
            "span",
            Wa,
            B(`微信扫码关注${r.weChatInfo.source === "aws" ? "AWS PaaS" : "易鲸云"}公众号进行登录`),
            1
            /* TEXT */
          )
        ])
      ])
    ]),
    O("div", Ma, [
      Ca,
      O("div", Ra, [
        T(l, {
          onClick: r.handlePhoneLogin,
          icon: "",
          circle: ""
        }, null, 8, ["onClick"])
      ])
    ])
  ])), [
    [d, e.weChatLoading]
  ]);
}
const Ya = /* @__PURE__ */ xe(xa, [["render", qa], ["__file", "E:/AWScode/awsui/awsui-biz/packages/model-publishing/src/components/login-dialog/wechat-login.vue"]]), Za = "", Fa = {
  name: "LoginDialog",
  emits: ["update-visible", "change-login-status"],
  props: {
    visibleDialog: {
      type: Boolean
    }
  },
  components: {
    LoginRegister: Vn,
    BasicInfo: Qn,
    ConcernWeChat: ga,
    WeChatLogin: Ya
  },
  setup(e, t) {
    const { proxy: n } = ge(), r = ce(!1);
    let u = F({
      get: () => n.$store.state.publishModel.componentVar
    });
    return {
      newVisible: r,
      componentState: u,
      handleOpen: () => {
        console.log("打开"), n.$store.commit("publishModel/SET_LOGIN_FLAG", 0), n.$refs.loginRegisterRef && n.$refs.loginRegisterRef.inputFocus();
      },
      handleClose: () => {
        console.log("关闭弹层"), n.$refs.loginRegisterRef && n.$refs.loginRegisterRef.resetData(), n.$refs.basicInfoRef && n.$refs.basicInfoRef.resetData(), n.$refs.concernWeChatRef && n.$refs.concernWeChatRef.resetData(), n.$refs.weChatLoginRef && n.$refs.weChatLoginRef.resetData(), n.$store.commit("publishModel/SET_COMPONENT_VAR", {
          loginWay: "phone",
          isLoginRegister: !0,
          // 控制手机号登录
          isBasicInfo: !1,
          // 控制完善信息窗口
          isConcernWeChat: !1,
          // 控制关注公众号 
          isWeChatLogin: !1
          // 控制微信登录
        });
      }
    };
  }
}, Ga = { class: "ch-container" }, Ea = /* @__PURE__ */ O(
  "div",
  { class: "left-bgc" },
  [
    /* @__PURE__ */ O("div", { class: "tip-text" }, [
      /* @__PURE__ */ O("span", null, "人人"),
      /* @__PURE__ */ O("span", null, "都是开发者")
    ]),
    /* @__PURE__ */ O("div", { class: "bgc-img" }, [
      /* @__PURE__ */ O("img", {
        src: Za,
        alt: ""
      })
    ])
  ],
  -1
  /* HOISTED */
), Ia = { class: "ch-right-content" }, Ba = /* @__PURE__ */ O(
  "div",
  { class: "footer-text" },
  [
    /* @__PURE__ */ O("span", null, "© 2022 炎黄盈动 技术咨询400 609 6909，应用发布审核咨询010-62962343-690")
  ],
  -1
  /* HOISTED */
);
function Ua(e, t, n, r, u, c) {
  const l = V("LoginRegister"), d = V("BasicInfo"), s = V("ConcernWeChat"), b = V("WeChatLogin"), i = V("awsui-dialog");
  return z(), Y(i, {
    class: "ch-login-dialog",
    "custom-class": "ch-login-dialog awsui-dialog",
    ref: "loginDialog",
    onOpened: r.handleOpen,
    onClose: r.handleClose,
    modelValue: r.newVisible,
    "onUpdate:modelValue": t[0] || (t[0] = (H) => r.newVisible = H),
    "destroy-on-close": !0,
    "show-close": !0,
    width: "80%"
  }, {
    default: N(() => [
      O("div", Ga, [
        Ea,
        O("div", Ia, [
          C(" 手机号登录 "),
          r.componentState.isLoginRegister ? (z(), Y(
            l,
            {
              key: 0,
              ref: "loginRegisterRef"
            },
            null,
            512
            /* NEED_PATCH */
          )) : C("v-if", !0),
          C(" 填写基本信息 "),
          r.componentState.isBasicInfo ? (z(), Y(
            d,
            {
              key: 1,
              ref: "basicInfoRef"
            },
            null,
            512
            /* NEED_PATCH */
          )) : C("v-if", !0),
          C(" 关注微信公众号 "),
          r.componentState.isConcernWeChat ? (z(), Y(
            s,
            {
              key: 2,
              ref: "concernWeChatRef"
            },
            null,
            512
            /* NEED_PATCH */
          )) : C("v-if", !0),
          C(" 微信登录 "),
          r.componentState.isWeChatLogin ? (z(), Y(
            b,
            {
              key: 3,
              ref: "weChatLoginRef"
            },
            null,
            512
            /* NEED_PATCH */
          )) : C("v-if", !0),
          Ba
        ])
      ])
    ]),
    _: 1
    /* STABLE */
  }, 8, ["onOpened", "onClose", "modelValue"]);
}
const Aa = /* @__PURE__ */ xe(Fa, [["render", Ua], ["__file", "E:/AWScode/awsui/awsui-biz/packages/model-publishing/src/components/login-dialog/index.vue"]]);
var mt = {}, Ja = {
  get exports() {
    return mt;
  },
  set exports(e) {
    mt = e;
  }
}, Ee = {}, Ka = {
  get exports() {
    return Ee;
  },
  set exports(e) {
    Ee = e;
  }
}, dr = function(t, n) {
  return function() {
    for (var u = new Array(arguments.length), c = 0; c < u.length; c++)
      u[c] = arguments[c];
    return t.apply(n, u);
  };
}, Qa = dr, Oe = Object.prototype.toString;
function yt(e) {
  return Oe.call(e) === "[object Array]";
}
function gt(e) {
  return typeof e == "undefined";
}
function _a(e) {
  return e !== null && !gt(e) && e.constructor !== null && !gt(e.constructor) && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
}
function $a(e) {
  return Oe.call(e) === "[object ArrayBuffer]";
}
function es(e) {
  return typeof FormData != "undefined" && e instanceof FormData;
}
function ts(e) {
  var t;
  return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && e.buffer instanceof ArrayBuffer, t;
}
function rs(e) {
  return typeof e == "string";
}
function ns(e) {
  return typeof e == "number";
}
function cr(e) {
  return e !== null && typeof e == "object";
}
function Ye(e) {
  if (Oe.call(e) !== "[object Object]")
    return !1;
  var t = Object.getPrototypeOf(e);
  return t === null || t === Object.prototype;
}
function as(e) {
  return Oe.call(e) === "[object Date]";
}
function ss(e) {
  return Oe.call(e) === "[object File]";
}
function os(e) {
  return Oe.call(e) === "[object Blob]";
}
function fr(e) {
  return Oe.call(e) === "[object Function]";
}
function ls(e) {
  return cr(e) && fr(e.pipe);
}
function is(e) {
  return typeof URLSearchParams != "undefined" && e instanceof URLSearchParams;
}
function us(e) {
  return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "");
}
function ds() {
  return typeof navigator != "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS") ? !1 : typeof window != "undefined" && typeof document != "undefined";
}
function Ot(e, t) {
  if (!(e === null || typeof e == "undefined"))
    if (typeof e != "object" && (e = [e]), yt(e))
      for (var n = 0, r = e.length; n < r; n++)
        t.call(null, e[n], n, e);
    else
      for (var u in e)
        Object.prototype.hasOwnProperty.call(e, u) && t.call(null, e[u], u, e);
}
function xt() {
  var e = {};
  function t(u, c) {
    Ye(e[c]) && Ye(u) ? e[c] = xt(e[c], u) : Ye(u) ? e[c] = xt({}, u) : yt(u) ? e[c] = u.slice() : e[c] = u;
  }
  for (var n = 0, r = arguments.length; n < r; n++)
    Ot(arguments[n], t);
  return e;
}
function cs(e, t, n) {
  return Ot(t, function(u, c) {
    n && typeof u == "function" ? e[c] = Qa(u, n) : e[c] = u;
  }), e;
}
function fs(e) {
  return e.charCodeAt(0) === 65279 && (e = e.slice(1)), e;
}
var $ = {
  isArray: yt,
  isArrayBuffer: $a,
  isBuffer: _a,
  isFormData: es,
  isArrayBufferView: ts,
  isString: rs,
  isNumber: ns,
  isObject: cr,
  isPlainObject: Ye,
  isUndefined: gt,
  isDate: as,
  isFile: ss,
  isBlob: os,
  isFunction: fr,
  isStream: ls,
  isURLSearchParams: is,
  isStandardBrowserEnv: ds,
  forEach: Ot,
  merge: xt,
  extend: cs,
  trim: us,
  stripBOM: fs
}, Ne = $;
function Rt(e) {
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
var vr = function(t, n, r) {
  if (!n)
    return t;
  var u;
  if (r)
    u = r(n);
  else if (Ne.isURLSearchParams(n))
    u = n.toString();
  else {
    var c = [];
    Ne.forEach(n, function(s, b) {
      s === null || typeof s == "undefined" || (Ne.isArray(s) ? b = b + "[]" : s = [s], Ne.forEach(s, function(H) {
        Ne.isDate(H) ? H = H.toISOString() : Ne.isObject(H) && (H = JSON.stringify(H)), c.push(Rt(b) + "=" + Rt(H));
      }));
    }), u = c.join("&");
  }
  if (u) {
    var l = t.indexOf("#");
    l !== -1 && (t = t.slice(0, l)), t += (t.indexOf("?") === -1 ? "?" : "&") + u;
  }
  return t;
}, vs = $;
function Ue() {
  this.handlers = [];
}
Ue.prototype.use = function(t, n, r) {
  return this.handlers.push({
    fulfilled: t,
    rejected: n,
    synchronous: r ? r.synchronous : !1,
    runWhen: r ? r.runWhen : null
  }), this.handlers.length - 1;
};
Ue.prototype.eject = function(t) {
  this.handlers[t] && (this.handlers[t] = null);
};
Ue.prototype.forEach = function(t) {
  vs.forEach(this.handlers, function(r) {
    r !== null && t(r);
  });
};
var ps = Ue, hs = $, bs = function(t, n) {
  hs.forEach(t, function(u, c) {
    c !== n && c.toUpperCase() === n.toUpperCase() && (t[n] = u, delete t[c]);
  });
}, pr = function(t, n, r, u, c) {
  return t.config = n, r && (t.code = r), t.request = u, t.response = c, t.isAxiosError = !0, t.toJSON = function() {
    return {
      // Standard
      message: this.message,
      name: this.name,
      // Microsoft
      description: this.description,
      number: this.number,
      // Mozilla
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      // Axios
      config: this.config,
      code: this.code
    };
  }, t;
}, $e, qt;
function hr() {
  if (qt)
    return $e;
  qt = 1;
  var e = pr;
  return $e = function(n, r, u, c, l) {
    var d = new Error(n);
    return e(d, r, u, c, l);
  }, $e;
}
var et, Yt;
function ms() {
  if (Yt)
    return et;
  Yt = 1;
  var e = hr();
  return et = function(n, r, u) {
    var c = u.config.validateStatus;
    !u.status || !c || c(u.status) ? n(u) : r(e(
      "Request failed with status code " + u.status,
      u.config,
      null,
      u.request,
      u
    ));
  }, et;
}
var tt, Zt;
function gs() {
  if (Zt)
    return tt;
  Zt = 1;
  var e = $;
  return tt = e.isStandardBrowserEnv() ? (
    // Standard browser envs support document.cookie
    function() {
      return {
        write: function(r, u, c, l, d, s) {
          var b = [];
          b.push(r + "=" + encodeURIComponent(u)), e.isNumber(c) && b.push("expires=" + new Date(c).toGMTString()), e.isString(l) && b.push("path=" + l), e.isString(d) && b.push("domain=" + d), s === !0 && b.push("secure"), document.cookie = b.join("; ");
        },
        read: function(r) {
          var u = document.cookie.match(new RegExp("(^|;\\s*)(" + r + ")=([^;]*)"));
          return u ? decodeURIComponent(u[3]) : null;
        },
        remove: function(r) {
          this.write(r, "", Date.now() - 864e5);
        }
      };
    }()
  ) : (
    // Non standard browser env (web workers, react-native) lack needed support.
    function() {
      return {
        write: function() {
        },
        read: function() {
          return null;
        },
        remove: function() {
        }
      };
    }()
  ), tt;
}
var rt, Ft;
function xs() {
  return Ft || (Ft = 1, rt = function(t) {
    return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t);
  }), rt;
}
var nt, Gt;
function ws() {
  return Gt || (Gt = 1, nt = function(t, n) {
    return n ? t.replace(/\/+$/, "") + "/" + n.replace(/^\/+/, "") : t;
  }), nt;
}
var at, Et;
function Ps() {
  if (Et)
    return at;
  Et = 1;
  var e = xs(), t = ws();
  return at = function(r, u) {
    return r && !e(u) ? t(r, u) : u;
  }, at;
}
var st, It;
function ys() {
  if (It)
    return st;
  It = 1;
  var e = $, t = [
    "age",
    "authorization",
    "content-length",
    "content-type",
    "etag",
    "expires",
    "from",
    "host",
    "if-modified-since",
    "if-unmodified-since",
    "last-modified",
    "location",
    "max-forwards",
    "proxy-authorization",
    "referer",
    "retry-after",
    "user-agent"
  ];
  return st = function(r) {
    var u = {}, c, l, d;
    return r && e.forEach(r.split(`
`), function(b) {
      if (d = b.indexOf(":"), c = e.trim(b.substr(0, d)).toLowerCase(), l = e.trim(b.substr(d + 1)), c) {
        if (u[c] && t.indexOf(c) >= 0)
          return;
        c === "set-cookie" ? u[c] = (u[c] ? u[c] : []).concat([l]) : u[c] = u[c] ? u[c] + ", " + l : l;
      }
    }), u;
  }, st;
}
var ot, Bt;
function Os() {
  if (Bt)
    return ot;
  Bt = 1;
  var e = $;
  return ot = e.isStandardBrowserEnv() ? (
    // Standard browser envs have full support of the APIs needed to test
    // whether the request URL is of the same origin as current location.
    function() {
      var n = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a"), u;
      function c(l) {
        var d = l;
        return n && (r.setAttribute("href", d), d = r.href), r.setAttribute("href", d), {
          href: r.href,
          protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
          host: r.host,
          search: r.search ? r.search.replace(/^\?/, "") : "",
          hash: r.hash ? r.hash.replace(/^#/, "") : "",
          hostname: r.hostname,
          port: r.port,
          pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
        };
      }
      return u = c(window.location.href), function(d) {
        var s = e.isString(d) ? c(d) : d;
        return s.protocol === u.protocol && s.host === u.host;
      };
    }()
  ) : (
    // Non standard browser envs (web workers, react-native) lack needed support.
    function() {
      return function() {
        return !0;
      };
    }()
  ), ot;
}
var lt, Ut;
function At() {
  if (Ut)
    return lt;
  Ut = 1;
  var e = $, t = ms(), n = gs(), r = vr, u = Ps(), c = ys(), l = Os(), d = hr();
  return lt = function(b) {
    return new Promise(function(H, a) {
      var o = b.data, m = b.headers, y = b.responseType;
      e.isFormData(o) && delete m["Content-Type"];
      var P = new XMLHttpRequest();
      if (b.auth) {
        var w = b.auth.username || "", g = b.auth.password ? unescape(encodeURIComponent(b.auth.password)) : "";
        m.Authorization = "Basic " + btoa(w + ":" + g);
      }
      var k = u(b.baseURL, b.url);
      P.open(b.method.toUpperCase(), r(k, b.params, b.paramsSerializer), !0), P.timeout = b.timeout;
      function x() {
        if (P) {
          var p = "getAllResponseHeaders" in P ? c(P.getAllResponseHeaders()) : null, h = !y || y === "text" || y === "json" ? P.responseText : P.response, X = {
            data: h,
            status: P.status,
            statusText: P.statusText,
            headers: p,
            config: b,
            request: P
          };
          t(H, a, X), P = null;
        }
      }
      if ("onloadend" in P ? P.onloadend = x : P.onreadystatechange = function() {
        !P || P.readyState !== 4 || P.status === 0 && !(P.responseURL && P.responseURL.indexOf("file:") === 0) || setTimeout(x);
      }, P.onabort = function() {
        P && (a(d("Request aborted", b, "ECONNABORTED", P)), P = null);
      }, P.onerror = function() {
        a(d("Network Error", b, null, P)), P = null;
      }, P.ontimeout = function() {
        var h = "timeout of " + b.timeout + "ms exceeded";
        b.timeoutErrorMessage && (h = b.timeoutErrorMessage), a(d(
          h,
          b,
          b.transitional && b.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
          P
        )), P = null;
      }, e.isStandardBrowserEnv()) {
        var f = (b.withCredentials || l(k)) && b.xsrfCookieName ? n.read(b.xsrfCookieName) : void 0;
        f && (m[b.xsrfHeaderName] = f);
      }
      "setRequestHeader" in P && e.forEach(m, function(h, X) {
        typeof o == "undefined" && X.toLowerCase() === "content-type" ? delete m[X] : P.setRequestHeader(X, h);
      }), e.isUndefined(b.withCredentials) || (P.withCredentials = !!b.withCredentials), y && y !== "json" && (P.responseType = b.responseType), typeof b.onDownloadProgress == "function" && P.addEventListener("progress", b.onDownloadProgress), typeof b.onUploadProgress == "function" && P.upload && P.upload.addEventListener("progress", b.onUploadProgress), b.cancelToken && b.cancelToken.promise.then(function(h) {
        P && (P.abort(), a(h), P = null);
      }), o || (o = null), P.send(o);
    });
  }, lt;
}
var A = $, Jt = bs, Hs = pr, js = {
  "Content-Type": "application/x-www-form-urlencoded"
};
function Kt(e, t) {
  !A.isUndefined(e) && A.isUndefined(e["Content-Type"]) && (e["Content-Type"] = t);
}
function zs() {
  var e;
  return (typeof XMLHttpRequest != "undefined" || typeof process != "undefined" && Object.prototype.toString.call(process) === "[object process]") && (e = At()), e;
}
function Ls(e, t, n) {
  if (A.isString(e))
    try {
      return (t || JSON.parse)(e), A.trim(e);
    } catch (r) {
      if (r.name !== "SyntaxError")
        throw r;
    }
  return (n || JSON.stringify)(e);
}
var Ae = {
  transitional: {
    silentJSONParsing: !0,
    forcedJSONParsing: !0,
    clarifyTimeoutError: !1
  },
  adapter: zs(),
  transformRequest: [function(t, n) {
    return Jt(n, "Accept"), Jt(n, "Content-Type"), A.isFormData(t) || A.isArrayBuffer(t) || A.isBuffer(t) || A.isStream(t) || A.isFile(t) || A.isBlob(t) ? t : A.isArrayBufferView(t) ? t.buffer : A.isURLSearchParams(t) ? (Kt(n, "application/x-www-form-urlencoded;charset=utf-8"), t.toString()) : A.isObject(t) || n && n["Content-Type"] === "application/json" ? (Kt(n, "application/json"), Ls(t)) : t;
  }],
  transformResponse: [function(t) {
    var n = this.transitional, r = n && n.silentJSONParsing, u = n && n.forcedJSONParsing, c = !r && this.responseType === "json";
    if (c || u && A.isString(t) && t.length)
      try {
        return JSON.parse(t);
      } catch (l) {
        if (c)
          throw l.name === "SyntaxError" ? Hs(l, this, "E_JSON_PARSE") : l;
      }
    return t;
  }],
  /**
   * A timeout in milliseconds to abort a request. If set to 0 (default) a
   * timeout is not created.
   */
  timeout: 0,
  xsrfCookieName: "XSRF-TOKEN",
  xsrfHeaderName: "X-XSRF-TOKEN",
  maxContentLength: -1,
  maxBodyLength: -1,
  validateStatus: function(t) {
    return t >= 200 && t < 300;
  }
};
Ae.headers = {
  common: {
    Accept: "application/json, text/plain, */*"
  }
};
A.forEach(["delete", "get", "head"], function(t) {
  Ae.headers[t] = {};
});
A.forEach(["post", "put", "patch"], function(t) {
  Ae.headers[t] = A.merge(js);
});
var Ht = Ae, Xs = $, Ns = Ht, Ts = function(t, n, r) {
  var u = this || Ns;
  return Xs.forEach(r, function(l) {
    t = l.call(u, t, n);
  }), t;
}, it, Qt;
function br() {
  return Qt || (Qt = 1, it = function(t) {
    return !!(t && t.__CANCEL__);
  }), it;
}
var _t = $, ut = Ts, Ds = br(), Ss = Ht;
function dt(e) {
  e.cancelToken && e.cancelToken.throwIfRequested();
}
var ks = function(t) {
  dt(t), t.headers = t.headers || {}, t.data = ut.call(
    t,
    t.data,
    t.headers,
    t.transformRequest
  ), t.headers = _t.merge(
    t.headers.common || {},
    t.headers[t.method] || {},
    t.headers
  ), _t.forEach(
    ["delete", "get", "head", "post", "put", "patch", "common"],
    function(u) {
      delete t.headers[u];
    }
  );
  var n = t.adapter || Ss.adapter;
  return n(t).then(function(u) {
    return dt(t), u.data = ut.call(
      t,
      u.data,
      u.headers,
      t.transformResponse
    ), u;
  }, function(u) {
    return Ds(u) || (dt(t), u && u.response && (u.response.data = ut.call(
      t,
      u.response.data,
      u.response.headers,
      t.transformResponse
    ))), Promise.reject(u);
  });
}, J = $, mr = function(t, n) {
  n = n || {};
  var r = {}, u = ["url", "method", "data"], c = ["headers", "auth", "proxy", "params"], l = [
    "baseURL",
    "transformRequest",
    "transformResponse",
    "paramsSerializer",
    "timeout",
    "timeoutMessage",
    "withCredentials",
    "adapter",
    "responseType",
    "xsrfCookieName",
    "xsrfHeaderName",
    "onUploadProgress",
    "onDownloadProgress",
    "decompress",
    "maxContentLength",
    "maxBodyLength",
    "maxRedirects",
    "transport",
    "httpAgent",
    "httpsAgent",
    "cancelToken",
    "socketPath",
    "responseEncoding"
  ], d = ["validateStatus"];
  function s(a, o) {
    return J.isPlainObject(a) && J.isPlainObject(o) ? J.merge(a, o) : J.isPlainObject(o) ? J.merge({}, o) : J.isArray(o) ? o.slice() : o;
  }
  function b(a) {
    J.isUndefined(n[a]) ? J.isUndefined(t[a]) || (r[a] = s(void 0, t[a])) : r[a] = s(t[a], n[a]);
  }
  J.forEach(u, function(o) {
    J.isUndefined(n[o]) || (r[o] = s(void 0, n[o]));
  }), J.forEach(c, b), J.forEach(l, function(o) {
    J.isUndefined(n[o]) ? J.isUndefined(t[o]) || (r[o] = s(void 0, t[o])) : r[o] = s(void 0, n[o]);
  }), J.forEach(d, function(o) {
    o in n ? r[o] = s(t[o], n[o]) : o in t && (r[o] = s(void 0, t[o]));
  });
  var i = u.concat(c).concat(l).concat(d), H = Object.keys(t).concat(Object.keys(n)).filter(function(o) {
    return i.indexOf(o) === -1;
  });
  return J.forEach(H, b), r;
};
const Vs = "axios", Ws = "0.21.4", Ms = "Promise based HTTP client for the browser and node.js", Cs = "index.js", Rs = {
  test: "grunt test",
  start: "node ./sandbox/server.js",
  build: "NODE_ENV=production grunt build",
  preversion: "npm test",
  version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
  postversion: "git push && git push --tags",
  examples: "node ./examples/server.js",
  coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
  fix: "eslint --fix lib/**/*.js"
}, qs = {
  type: "git",
  url: "https://github.com/axios/axios.git"
}, Ys = [
  "xhr",
  "http",
  "ajax",
  "promise",
  "node"
], Zs = "Matt Zabriskie", Fs = "MIT", Gs = {
  url: "https://github.com/axios/axios/issues"
}, Es = "https://axios-http.com", Is = {
  coveralls: "^3.0.0",
  "es6-promise": "^4.2.4",
  grunt: "^1.3.0",
  "grunt-banner": "^0.6.0",
  "grunt-cli": "^1.2.0",
  "grunt-contrib-clean": "^1.1.0",
  "grunt-contrib-watch": "^1.0.0",
  "grunt-eslint": "^23.0.0",
  "grunt-karma": "^4.0.0",
  "grunt-mocha-test": "^0.13.3",
  "grunt-ts": "^6.0.0-beta.19",
  "grunt-webpack": "^4.0.2",
  "istanbul-instrumenter-loader": "^1.0.0",
  "jasmine-core": "^2.4.1",
  karma: "^6.3.2",
  "karma-chrome-launcher": "^3.1.0",
  "karma-firefox-launcher": "^2.1.0",
  "karma-jasmine": "^1.1.1",
  "karma-jasmine-ajax": "^0.1.13",
  "karma-safari-launcher": "^1.0.0",
  "karma-sauce-launcher": "^4.3.6",
  "karma-sinon": "^1.0.5",
  "karma-sourcemap-loader": "^0.3.8",
  "karma-webpack": "^4.0.2",
  "load-grunt-tasks": "^3.5.2",
  minimist: "^1.2.0",
  mocha: "^8.2.1",
  sinon: "^4.5.0",
  "terser-webpack-plugin": "^4.2.3",
  typescript: "^4.0.5",
  "url-search-params": "^0.10.0",
  webpack: "^4.44.2",
  "webpack-dev-server": "^3.11.0"
}, Bs = {
  "./lib/adapters/http.js": "./lib/adapters/xhr.js"
}, Us = "dist/axios.min.js", As = "dist/axios.min.js", Js = "./index.d.ts", Ks = {
  "follow-redirects": "^1.14.0"
}, Qs = [
  {
    path: "./dist/axios.min.js",
    threshold: "5kB"
  }
], _s = {
  name: Vs,
  version: Ws,
  description: Ms,
  main: Cs,
  scripts: Rs,
  repository: qs,
  keywords: Ys,
  author: Zs,
  license: Fs,
  bugs: Gs,
  homepage: Es,
  devDependencies: Is,
  browser: Bs,
  jsdelivr: Us,
  unpkg: As,
  typings: Js,
  dependencies: Ks,
  bundlesize: Qs
};
var gr = _s, jt = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(e, t) {
  jt[e] = function(r) {
    return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
  };
});
var $t = {}, $s = gr.version.split(".");
function xr(e, t) {
  for (var n = t ? t.split(".") : $s, r = e.split("."), u = 0; u < 3; u++) {
    if (n[u] > r[u])
      return !0;
    if (n[u] < r[u])
      return !1;
  }
  return !1;
}
jt.transitional = function(t, n, r) {
  var u = n && xr(n);
  function c(l, d) {
    return "[Axios v" + gr.version + "] Transitional option '" + l + "'" + d + (r ? ". " + r : "");
  }
  return function(l, d, s) {
    if (t === !1)
      throw new Error(c(d, " has been removed in " + n));
    return u && !$t[d] && ($t[d] = !0, console.warn(
      c(
        d,
        " has been deprecated since v" + n + " and will be removed in the near future"
      )
    )), t ? t(l, d, s) : !0;
  };
};
function eo(e, t, n) {
  if (typeof e != "object")
    throw new TypeError("options must be an object");
  for (var r = Object.keys(e), u = r.length; u-- > 0; ) {
    var c = r[u], l = t[c];
    if (l) {
      var d = e[c], s = d === void 0 || l(d, c, e);
      if (s !== !0)
        throw new TypeError("option " + c + " must be " + s);
      continue;
    }
    if (n !== !0)
      throw Error("Unknown option " + c);
  }
}
var to = {
  isOlderVersion: xr,
  assertOptions: eo,
  validators: jt
}, wr = $, ro = vr, er = ps, tr = ks, Je = mr, Pr = to, Te = Pr.validators;
function We(e) {
  this.defaults = e, this.interceptors = {
    request: new er(),
    response: new er()
  };
}
We.prototype.request = function(t) {
  typeof t == "string" ? (t = arguments[1] || {}, t.url = arguments[0]) : t = t || {}, t = Je(this.defaults, t), t.method ? t.method = t.method.toLowerCase() : this.defaults.method ? t.method = this.defaults.method.toLowerCase() : t.method = "get";
  var n = t.transitional;
  n !== void 0 && Pr.assertOptions(n, {
    silentJSONParsing: Te.transitional(Te.boolean, "1.0.0"),
    forcedJSONParsing: Te.transitional(Te.boolean, "1.0.0"),
    clarifyTimeoutError: Te.transitional(Te.boolean, "1.0.0")
  }, !1);
  var r = [], u = !0;
  this.interceptors.request.forEach(function(a) {
    typeof a.runWhen == "function" && a.runWhen(t) === !1 || (u = u && a.synchronous, r.unshift(a.fulfilled, a.rejected));
  });
  var c = [];
  this.interceptors.response.forEach(function(a) {
    c.push(a.fulfilled, a.rejected);
  });
  var l;
  if (!u) {
    var d = [tr, void 0];
    for (Array.prototype.unshift.apply(d, r), d = d.concat(c), l = Promise.resolve(t); d.length; )
      l = l.then(d.shift(), d.shift());
    return l;
  }
  for (var s = t; r.length; ) {
    var b = r.shift(), i = r.shift();
    try {
      s = b(s);
    } catch (H) {
      i(H);
      break;
    }
  }
  try {
    l = tr(s);
  } catch (H) {
    return Promise.reject(H);
  }
  for (; c.length; )
    l = l.then(c.shift(), c.shift());
  return l;
};
We.prototype.getUri = function(t) {
  return t = Je(this.defaults, t), ro(t.url, t.params, t.paramsSerializer).replace(/^\?/, "");
};
wr.forEach(["delete", "get", "head", "options"], function(t) {
  We.prototype[t] = function(n, r) {
    return this.request(Je(r || {}, {
      method: t,
      url: n,
      data: (r || {}).data
    }));
  };
});
wr.forEach(["post", "put", "patch"], function(t) {
  We.prototype[t] = function(n, r, u) {
    return this.request(Je(u || {}, {
      method: t,
      url: n,
      data: r
    }));
  };
});
var no = We, ct, rr;
function yr() {
  if (rr)
    return ct;
  rr = 1;
  function e(t) {
    this.message = t;
  }
  return e.prototype.toString = function() {
    return "Cancel" + (this.message ? ": " + this.message : "");
  }, e.prototype.__CANCEL__ = !0, ct = e, ct;
}
var ft, nr;
function ao() {
  if (nr)
    return ft;
  nr = 1;
  var e = yr();
  function t(n) {
    if (typeof n != "function")
      throw new TypeError("executor must be a function.");
    var r;
    this.promise = new Promise(function(l) {
      r = l;
    });
    var u = this;
    n(function(l) {
      u.reason || (u.reason = new e(l), r(u.reason));
    });
  }
  return t.prototype.throwIfRequested = function() {
    if (this.reason)
      throw this.reason;
  }, t.source = function() {
    var r, u = new t(function(l) {
      r = l;
    });
    return {
      token: u,
      cancel: r
    };
  }, ft = t, ft;
}
var vt, ar;
function so() {
  return ar || (ar = 1, vt = function(t) {
    return function(r) {
      return t.apply(null, r);
    };
  }), vt;
}
var pt, sr;
function oo() {
  return sr || (sr = 1, pt = function(t) {
    return typeof t == "object" && t.isAxiosError === !0;
  }), pt;
}
var or = $, lo = dr, Ze = no, io = mr, uo = Ht;
function Or(e) {
  var t = new Ze(e), n = lo(Ze.prototype.request, t);
  return or.extend(n, Ze.prototype, t), or.extend(n, t), n;
}
var ae = Or(uo);
ae.Axios = Ze;
ae.create = function(t) {
  return Or(io(ae.defaults, t));
};
ae.Cancel = yr();
ae.CancelToken = ao();
ae.isCancel = br();
ae.all = function(t) {
  return Promise.all(t);
};
ae.spread = so();
ae.isAxiosError = oo();
Ka.exports = ae;
Ee.default = ae;
(function(e) {
  e.exports = Ee;
})(Ja);
const zt = /* @__PURE__ */ Fr(mt), co = {
  name: "SurveyDialog",
  emits: ["update-surveyVisible"],
  components: {
    Clock: Zr,
    LoginDialog: Aa
  },
  props: {
    surveyVisible: {
      type: Boolean,
      default: !1
    },
    formData: {
      type: String,
      default: ""
    },
    code: {
      type: String
    }
  },
  setup(e, t) {
    const { proxy: n, appContext: r } = ge(), u = r.config.globalProperties.awsuiaxios, c = ce(null), l = ce(null);
    let d = ce(!1), s = Q({
      radioQ1Value: "",
      radioQ2Value: "",
      checkListQ1Value: [],
      checkListQ2Value: [],
      scoreValue: null,
      questionInput: "",
      userName: "",
      userPhone: "",
      userAddress: "",
      isBackVisit: "",
      // 是否同意回访
      isJoin: ""
      // 是否参与积分兑换
    }), b = Q({
      questionInput: [
        { min: 1, max: 10, message: " ", trigger: ["blur", "change"] }
      ]
    }), i = Q({
      traceCode: "",
      surveyTitle: "",
      joinExchangeGift: null,
      radioQ1Options: {},
      radioQ2Options: {},
      checkboxQ1Options: {},
      checkboxQ2Options: {},
      questionAnswerOptions: {},
      backVisitOptions: {},
      scoreList: [
        {
          value: 1,
          label: "1"
        },
        {
          value: 2,
          label: "2"
        },
        {
          value: 3,
          label: "3"
        },
        {
          value: 4,
          label: "4"
        },
        {
          value: 5,
          label: "5"
        },
        {
          value: 6,
          label: "6"
        },
        {
          value: 7,
          label: "7"
        },
        {
          value: 8,
          label: "8"
        },
        {
          value: 9,
          label: "9"
        },
        {
          value: 10,
          label: "10"
        }
      ],
      lowDes: "不推荐",
      highDes: "极可能"
    });
    Ve(() => e.formData, (v, j) => {
      if (console.log(v, "survey监听的值"), v && v !== "{}") {
        let {
          title: M,
          joinExchangeGift: E,
          radioQ1Options: I,
          radioQ2Options: K,
          checkboxQ1Options: se,
          checkboxQ2Options: He,
          questionAnswerOptions: pe,
          backVisitOptions: Ke,
          traceCode: Qe,
          lowDes: Me,
          highDes: Ce
        } = JSON.parse(v);
        i.surveyTitle = M, i.radioQ1Options = I, i.radioQ2Options = K, i.checkboxQ1Options = se, i.checkboxQ2Options = He, i.questionAnswerOptions = pe, n.awsuiTools.isNull(pe.noValueTip) && (pe.noValueTip = "请输入您的答案"), i.backVisitOptions = Ke, i.joinExchangeGift = E, i.traceCode = Qe, i.lowDes = Me, i.highDes = Ce;
      }
    }, {
      immediate: !0,
      deep: !0
    }), Ve(() => n.$store.state.publishModel.loginFlag, (v) => {
      console.log(v, "监听登录状态"), v === 1 && (s.isJoin = "", n.$refs.LoginDialogRef.newVisible = !1);
    }, { deep: !0 });
    let H = F({
      get: () => e.code
    }), a = F({
      get: () => {
        let v = null;
        if (i.radioQ1Options !== null) {
          if (!i.radioQ1Options.questionName) {
            v = !1;
            return;
          }
          if (i.radioQ1Options.isBinding) {
            let j = i.radioQ1Options.bindingRulesScore.split("");
            j[0] === ">" ? s.scoreValue && s.scoreValue > Number(j[1]) ? v = !0 : v = !1 : s.scoreValue && s.scoreValue < Number(j[1]) ? v = !0 : v = !1;
          } else
            v = !0;
        } else
          v = !1;
        return v;
      }
    }), o = F({
      get: () => {
        let v = null;
        if (i.radioQ2Options !== null) {
          if (!i.radioQ2Options.questionName) {
            v = !1;
            return;
          }
          if (i.radioQ2Options.isBinding) {
            let j = i.radioQ2Options.bindingRulesScore.split("");
            j[0] === ">" ? s.scoreValue && s.scoreValue > Number(j[1]) ? v = !0 : v = !1 : s.scoreValue && s.scoreValue < Number(j[1]) ? v = !0 : v = !1;
          } else
            v = !0;
        } else
          v = !1;
        return v;
      }
    }), m = F({
      get: () => {
        let v = null;
        if (i.checkboxQ1Options !== null) {
          if (!i.checkboxQ1Options.questionName) {
            v = !1;
            return;
          }
          if (i.checkboxQ1Options.isBinding) {
            let j = i.checkboxQ1Options.bindingRulesScore.split("");
            j[0] === ">" ? s.scoreValue && s.scoreValue > Number(j[1]) ? v = !0 : v = !1 : s.scoreValue && s.scoreValue < Number(j[1]) ? v = !0 : v = !1;
          } else
            v = !0;
        } else
          v = !1;
        return v;
      }
    }), y = F({
      get: () => {
        let v = null;
        if (i.checkboxQ2Options !== null) {
          if (!i.checkboxQ2Options.questionName) {
            v = !1;
            return;
          }
          if (i.checkboxQ2Options.isBinding) {
            let j = i.checkboxQ2Options.bindingRulesScore.split("");
            j[0] === ">" ? s.scoreValue && s.scoreValue > Number(j[1]) ? v = !0 : v = !1 : s.scoreValue && s.scoreValue < Number(j[1]) ? v = !0 : v = !1;
          } else
            v = !0;
        } else
          v = !1;
        return v;
      }
    }), P = F({
      get: () => {
        let v = null;
        if (i.questionAnswerOptions !== null) {
          if (!i.questionAnswerOptions.questionName) {
            v = !1;
            return;
          }
          if (i.questionAnswerOptions.isBinding) {
            let j = i.questionAnswerOptions.bindingRulesScore.split("");
            j[0] === ">" ? s.scoreValue && s.scoreValue > Number(j[1]) ? v = !0 : v = !1 : s.scoreValue && s.scoreValue < Number(j[1]) ? v = !0 : v = !1;
          } else
            v = !0;
        } else
          v = !1;
        return v;
      }
    }), w = F({
      get: () => {
        let v = null;
        if (i.backVisitOptions !== null) {
          if (!i.backVisitOptions.isAsk)
            return !1;
          if (i.backVisitOptions.isBinding) {
            let j = i.backVisitOptions.bindingRulesScore.split("");
            j[0] === ">" ? s.scoreValue && s.scoreValue > Number(j[1]) ? v = !0 : v = !1 : s.scoreValue && s.scoreValue < Number(j[1]) ? v = !0 : v = !1;
          } else
            v = !0;
        } else
          v = !1;
        return v;
      }
    }), g = F({
      get: () => !!i.joinExchangeGift
    }), k = F({
      get: () => {
        let v = "";
        return a.value ? v = "2. " : !a.value && o.value ? v = "1. " : v = "", v;
      }
    }), x = F({
      get: () => {
        let v = "";
        return a.value && o.value && m.value ? v = "3. " : a.value && !o.value && m.value || !a.value && o.value && m.value ? v = "2. " : !a.value && !o.value && m.value ? v = "1. " : v = "", v;
      }
    }), f = F({
      get: () => {
        let v = "";
        return a.value && o.value && m.value && y.value ? v = "4. " : !a.value && o.value && m.value && y.value || a.value && !o.value && m.value && y.value || a.value && o.value && !m.value && y.value ? v = "3." : !a.value && !o.value && m.value && y.value || !a.value && o.value && !m.value && y.value || a.value && !o.value && !m.value && y.value ? v = "2." : !a.value && !o.value && !m.value && y.value ? v = "1. " : v = "", v;
      }
    }), p = F({
      get: () => {
        let v = "";
        return a.value && o.value && m.value && y.value && P.value ? v = "5. " : !a.value && o.value && m.value && y.value && P.value || a.value && !o.value && m.value && y.value && P.value || a.value && o.value && !m.value && y.value && P.value ? v = "4. " : !a.value && !o.value && m.value && y.value && P.value || a.value && !o.value && !m.value && y.value && P.value || !a.value && o.value && !m.value && y.value && P.value || !a.value && o.value && m.value && !y.value && P.value || a.value && !o.value && m.value && !y.value && P.value || a.value && o.value && !m.value && !y.value && P.value ? v = "3. " : !a.value && !o.value && !m.value && y.value && P.value || !a.value && !o.value && m.value && !y.value && P.value || !a.value && o.value && !m.value && !y.value && P.value || a.value && !o.value && !m.value && !y.value && P.value ? v = "2. " : !a.value && !o.value && !m.value && !y.value && P.value ? v = "1. " : v = "", v;
      }
    }), h = F({
      get: () => {
        let v = "";
        return a.value && o.value && m.value && y.value && P.value && w.value ? v = "6. " : !a.value && o.value && m.value && y.value && P.value && w.value || a.value && !o.value && m.value && y.value && P.value && w.value || a.value && o.value && !m.value && y.value && P.value && w.value || a.value && o.value && m.value && !y.value && P.value && w.value || a.value && o.value && m.value && y.value && !P.value && w.value ? v = "5. " : !a.value && !o.value && m.value && y.value && P.value && w.value || !a.value && o.value && !m.value && y.value && P.value && w.value || !a.value && o.value && m.value && !y.value && P.value && w.value || !a.value && o.value && m.value && y.value && !P.value && w.value || a.value && !o.value && !m.value && y.value && P.value && w.value || a.value && !o.value && m.value && !y.value && P.value && w.value || a.value && !o.value && m.value && y.value && !P.value && w.value || a.value && o.value && !m.value && !y.value && P.value && w.value || a.value && o.value && !m.value && y.value && !P.value && w.value || a.value && o.value && m.value && !y.value && !P.value && w.value ? v = "4. " : !a.value && !o.value && !m.value && y.value && P.value && w.value || !a.value && !o.value && m.value && !y.value && P.value && w.value || !a.value && !o.value && m.value && y.value && !P.value && w.value || !a.value && o.value && !m.value && !y.value && P.value && w.value || !a.value && o.value && !m.value && y.value && !P.value && w.value || !a.value && o.value && m.value && !y.value && !P.value && w.value || a.value && !o.value && !m.value && !y.value && P.value && w.value || a.value && !o.value && !m.value && y.value && !P.value && w.value || a.value && o.value && !m.value && !y.value && !P.value && w.value ? v = "3. " : !a.value && !o.value && !m.value && !y.value && P.value && w.value || !a.value && !o.value && !m.value && y.value && !P.value && w.value || !a.value && !o.value && m.value && !y.value && !P.value && w.value || !a.value && o.value && !m.value && !y.value && !P.value && w.value || a.value && !o.value && !m.value && !y.value && !P.value && w.value ? v = "2. " : !a.value && !o.value && !m.value && !y.value && !P.value && w.value ? v = "1. " : v = "", v;
      }
    }), X = F({
      get: () => {
        let v = "";
        return a.value && o.value && x.value && f.value && p.value && w.value && g.value ? v = "7. " : !a.value && o.value && x.value && f.value && p.value && w.value && g.value || a.value && !o.value && x.value && f.value && p.value && w.value && g.value || a.value && o.value && !x.value && f.value && p.value && w.value && g.value || a.value && o.value && x.value && !f.value && p.value && w.value && g.value || a.value && o.value && x.value && f.value && !p.value && w.value && g.value || a.value && o.value && x.value && f.value && p.value && !w.value && g.value ? v = "6. " : !a.value && !o.value && x.value && f.value && p.value && w.value && g.value || !a.value && o.value && !x.value && f.value && p.value && w.value && g.value || !a.value && o.value && x.value && !f.value && p.value && w.value && g.value || !a.value && o.value && x.value && f.value && !p.value && w.value && g.value || !a.value && o.value && x.value && f.value && p.value && !w.value && g.value || a.value && !o.value && !x.value && f.value && p.value && w.value && g.value || a.value && !o.value && x.value && !f.value && p.value && w.value && g.value || a.value && !o.value && x.value && !f.value && p.value && w.value && g.value || a.value && !o.value && x.value && f.value && !p.value && w.value && g.value || a.value && !o.value && x.value && f.value && p.value && !w.value && g.value || a.value && o.value && !x.value && !f.value && p.value && w.value && g.value || a.value && o.value && !x.value && f.value && !p.value && w.value && g.value || a.value && o.value && !x.value && f.value && p.value && !w.value && g.value || a.value && o.value && x.value && !f.value && !p.value && w.value && g.value || a.value && o.value && x.value && !f.value && p.value && !w.value && g.value || a.value && o.value && x.value && f.value && !p.value && !w.value && g.value ? v = "5. " : !a.value && !o.value && !x.value && f.value && p.value && w.value && g.value || !a.value && !o.value && x.value && !f.value && p.value && w.value && g.value || !a.value && !o.value && x.value && f.value && !p.value && w.value && g.value || !a.value && !o.value && x.value && f.value && p.value && !w.value && g.value || !a.value && o.value && !x.value && !f.value && p.value && w.value && g.value || !a.value && o.value && !x.value && f.value && !p.value && w.value && g.value || !a.value && o.value && !x.value && f.value && p.value && !w.value && g.value || !a.value && o.value && x.value && !f.value && !p.value && w.value && g.value || !a.value && o.value && x.value && !f.value && p.value && !w.value && g.value || !a.value && o.value && x.value && f.value && !p.value && !w.value && g.value || a.value && !o.value && !x.value && !f.value && p.value && !w.value && g.value || a.value && !o.value && !x.value && f.value && !p.value && w.value && g.value || a.value && !o.value && !x.value && f.value && p.value && !w.value && g.value || a.value && o.value && !x.value && !f.value && !p.value && w.value && g.value || a.value && o.value && !x.value && !f.value && p.value && !w.value && g.value || a.value && o.value && x.value && !f.value && !p.value && !w.value && g.value ? v = "4. " : !a.value && !o.value && !x.value && !f.value && p.value && w.value && g.value || !a.value && !o.value && !x.value && f.value && !p.value && w.value && g.value || !a.value && !o.value && !x.value && f.value && p.value && !w.value && g.value || !a.value && !o.value && x.value && !f.value && !p.value && w.value && g.value || !a.value && !o.value && x.value && !f.value && p.value && !w.value && g.value || !a.value && !o.value && x.value && !f.value && p.value && !w.value && g.value || !a.value && !o.value && x.value && f.value && !p.value && !w.value && g.value || !a.value && o.value && !x.value && !f.value && !p.value && w.value && g.value || !a.value && o.value && !x.value && !f.value && p.value && !w.value && g.value || !a.value && o.value && !x.value && f.value && !p.value && !w.value && g.value || !a.value && o.value && x.value && !f.value && !p.value && !w.value && g.value || !a.value && o.value && x.value && !f.value && !p.value && !w.value && g.value || a.value && !o.value && !x.value && !f.value && !p.value && w.value && g.value || a.value && !o.value && !x.value && !f.value && p.value && !w.value && g.value || a.value && !o.value && !x.value && f.value && !p.value && !w.value && g.value || a.value && !o.value && x.value && !f.value && !p.value && !w.value && g.value || a.value && o.value && !x.value && !f.value && !p.value && !w.value && g.value ? v = "3. " : !a.value && !o.value && !x.value && !f.value && !p.value && w.value && g.value || !a.value && !o.value && !x.value && !f.value && p.value && !w.value && g.value || !a.value && !o.value && !x.value && f.value && !p.value && !w.value && g.value || !a.value && !o.value && x.value && !f.value && !p.value && !w.value && g.value || !a.value && o.value && !x.value && !f.value && !p.value && !w.value && g.value || a.value && !o.value && !x.value && !f.value && !p.value && !w.value && g.value ? v = "2. " : !a.value && !o.value && !x.value && !f.value && !p.value && !w.value && g.value ? v = "1. " : v = "", v;
      }
    }), S = F({
      get: () => e.surveyVisible,
      set: (v) => {
        t.emit("update-surveyVisible", v);
      }
    });
    const D = {
      watchDom() {
        bn().listenTo(document.querySelector(".ch-nps-survey-form"), function(j) {
          te(() => {
            j.scrollHeight > j.clientHeight && j.scrollHeight - j.clientHeight > 36 ? d.value = !0 : d.value = !1, j.addEventListener("scroll", function(M) {
              let E = M.target;
              E.scrollTop + E.clientHeight < E.scrollHeight - 47.6 ? d.value = !0 : d.value = !1;
            }, !0);
          });
        });
      },
      handleOpen() {
        D.watchDom();
      },
      handleClose() {
        d.value = !1, c.value.resetFields(), D.subNpsData(-1);
      },
      subNpsData(v) {
        var j = window.npsAPI.changeNPSObj();
        if (j !== void 0) {
          var M = window.npsAPI.getBrowserName(), E = window.npsAPI.getBrowserVersion(M), I = {
            tenantId: j.tenantId,
            traceId: j.traceId,
            traceCode: i.traceCode,
            npsCode: H.value,
            userName: j.userName,
            orgName: j.org,
            title: i.surveyTitle,
            score: v == 0 ? s.scoreValue : v,
            isCall: s.isBackVisit == "1",
            callInfo: s.userName + " - " + s.userPhone + " - " + s.userAddress,
            needScore: s.isJoin == "1" ? 1 : 0,
            province: "",
            city: "",
            o1Title: i.radioQ1Options.questionName,
            // 单选题目1
            o1value: s.radioQ1Value,
            // 单选题目1value
            o2title: i.radioQ2Options.questionName,
            // 单选题目2
            o2value: s.radioQ2Value,
            // 单选题目2value
            s1title: i.checkboxQ1Options.questionName,
            // 多选题目1
            s1Value: s.checkListQ1Value.toString(),
            // 多选题目value
            s2Title: i.checkboxQ2Options.questionName,
            // 多选题目2
            s2Value: s.checkListQ2Value.toString(),
            // 多选题目value
            q1Title: i.questionAnswerOptions.questionName,
            //问答题目
            q1Value: s.questionInput,
            // 问答value
            platform: j.platform,
            platformVer: j.ver,
            biz: j.biz,
            browser: M,
            browserVer: E,
            device: "pc",
            ip: ""
          }, K = window.npsAPI.baseUrl;
          if (n.awsuiTools.isNull(K)) {
            console.log("请求异常---请求停止 baseUrl=", K);
            return;
          }
          zt.post(K + "/add/feedback/record", I).then((se) => {
            console.log("add/feedback/record >请求结果", se);
          }).catch((se) => {
            console.log(se);
          }), S.value = !1;
        }
      },
      // 提交积分
      submitIntegral() {
        console.log(n.$store.state.publishModel.userInfo), u.post({
          url: "jd",
          data: {
            cmd: "CONSOLE_APPSTORE_USER_SCORE_ACTION",
            actionType: 11,
            // 规则
            userId: n.$store.state.publishModel.userInfo.id,
            memo: "NPS",
            // 备注
            objId: "",
            // 积分来源ID
            objName: ""
            // 积分来源名称
          }
        }).then((v) => {
          console.log(v, "提交积分");
        });
      },
      // 是否参与积分兑换奖励
      changeJoinStatus(v) {
        v === "1" ? n.$store.state.publishModel.loginFlag ? (console.log("发送api加分"), n.$refs.LoginDialogRef.newVisible = !1, D.submitIntegral()) : n.$refs.LoginDialogRef.newVisible = !0 : n.$refs.LoginDialogRef.newVisible = !1, console.log(v, "参与积分兑换奖励");
      },
      // 提交事件回调
      handleSubmit() {
        let v = 1, j = null;
        if (!n.$store.state.publishModel.loginFlag && s.isJoin === "1") {
          n.$refs.LoginDialogRef.newVisible = !0;
          return;
        }
        clearInterval(j), c.value.validate((M, E) => {
          M ? D.subNpsData(0) : setTimeout(() => {
            let I = document.querySelectorAll(".is-error")[0], K = document.querySelector(".ch-nps-survey-form");
            j = setInterval(() => {
              v > 2 ? clearInterval(j) : (I.classList.add("is-error-bg"), setTimeout(() => {
                I.classList.remove("is-error-bg");
              }, 200), v++);
            }, 400), K.scrollTop = I.offsetTop;
          }, 100);
        });
      },
      // 不参与按钮事件回调
      handleCancel() {
        S.value = !1, console.log("不参与");
      },
      handleScore(v) {
        s.scoreValue = v, D.watchDom();
      }
    };
    return {
      ruleForm: c,
      awsuiDialog: l,
      form: s,
      ...le(i),
      ...le(D),
      rules: b,
      isShowFixed: d,
      // 控制底部悬浮信息
      npsCode: H,
      radioSerialQ2: k,
      // 序列号
      checkboxSerialQ1: x,
      // 序列号
      checkboxSerialQ2: f,
      // 序列号
      questionInputSerial: p,
      // 序列号
      visitSerial: h,
      // 序列号
      joinSerial: X,
      // 序列号
      Q1RadioShow: a,
      //控制 单元一隐藏
      Q2RadioShow: o,
      Q1CheckboxShow: m,
      Q2CheckboxShow: y,
      questionAnswerShow: P,
      backVisitShow: w,
      joinExchangeShow: g,
      newSurveyVisible: S
    };
  }
}, fo = {
  class: "ch-nps-survey-overview",
  id: "npsSurveyOverviewId"
}, vo = { class: "ch-nps-survey-container" }, po = { class: "ch-nps-title" }, ho = { class: "ch-nps-score-btn" }, bo = ["onClick"], mo = { class: "ch-nps-score-text" }, go = { class: "ch-nps-return-visit" }, xo = {
  class: "ch-nps-visit-btn",
  style: { display: "flex" }
}, wo = /* @__PURE__ */ G("是"), Po = /* @__PURE__ */ G("否"), yo = {
  key: 0,
  class: "ch-nps-visit-input"
}, Oo = /* @__PURE__ */ O(
  "span",
  { class: "ch-nps-line" },
  null,
  -1
  /* HOISTED */
), Ho = /* @__PURE__ */ G("是"), jo = /* @__PURE__ */ G("否"), zo = { class: "ch-nps-footer-btn" }, Lo = { key: 0 }, Xo = /* @__PURE__ */ G("提交"), No = /* @__PURE__ */ G("取消"), To = { class: "ch-nps-fixed-tooltip" }, Do = /* @__PURE__ */ O(
  "span",
  null,
  "提交可获得2分奖励，用于兑换商店小礼物",
  -1
  /* HOISTED */
), So = [
  Do
];
function ko(e, t, n, r, u, c) {
  const l = V("el-radio"), d = V("el-radio-group"), s = V("el-form-item"), b = V("el-checkbox"), i = V("el-checkbox-group"), H = V("el-input"), a = V("clock"), o = V("el-icon"), m = V("awsui-button"), y = V("el-form"), P = V("awsui-dialog"), w = V("LoginDialog");
  return z(), W(
    re,
    null,
    [
      O("div", fo, [
        T(P, {
          class: "ch-nps-survey-dialog",
          ref: "awsuiDialog",
          "custom-class": "awsui-dialog ch-nps-survey-dialog",
          modal: !1,
          "append-to-body": !1,
          "close-on-click-modal": !1,
          onOpened: e.handleOpen,
          onClose: e.handleClose,
          modelValue: r.newSurveyVisible,
          "onUpdate:modelValue": t[12] || (t[12] = (g) => r.newSurveyVisible = g)
        }, {
          default: N(() => [
            O("div", vo, [
              O("div", po, [
                O(
                  "span",
                  null,
                  B(e.surveyTitle),
                  1
                  /* TEXT */
                ),
                O("div", ho, [
                  O("ul", null, [
                    (z(!0), W(
                      re,
                      null,
                      ne(e.scoreList, (g, k) => (z(), W("li", {
                        class: ve({ active: r.form.scoreValue === g.value }),
                        key: k,
                        onClick: (x) => e.handleScore(g.value),
                        type: "primary"
                      }, B(g.label), 11, bo))),
                      128
                      /* KEYED_FRAGMENT */
                    ))
                  ]),
                  O("div", mo, [
                    O(
                      "span",
                      null,
                      B(e.lowDes),
                      1
                      /* TEXT */
                    ),
                    O(
                      "span",
                      null,
                      B(e.highDes),
                      1
                      /* TEXT */
                    )
                  ])
                ])
              ]),
              T(y, {
                class: "ch-nps-survey-form",
                ref: "ruleForm",
                model: r.form,
                rules: r.rules,
                "label-position": "top",
                "label-width": "80px",
                onSubmit: t[11] || (t[11] = wt(() => {
                }, ["prevent"]))
              }, {
                default: N(() => [
                  r.Q1RadioShow ? (z(), Y(s, {
                    key: 0,
                    prop: "radioQ1Value",
                    required: e.radioQ1Options.required,
                    "show-message": !1,
                    label: `${r.Q1RadioShow ? "1. " : ""}${e.radioQ1Options.questionName}`,
                    style: { "margin-bottom": "8px" }
                  }, {
                    default: N(() => [
                      T(d, {
                        modelValue: r.form.radioQ1Value,
                        "onUpdate:modelValue": t[0] || (t[0] = (g) => r.form.radioQ1Value = g)
                      }, {
                        default: N(() => [
                          (z(!0), W(
                            re,
                            null,
                            ne(e.radioQ1Options.radioList, (g, k) => fe((z(), Y(l, {
                              key: k,
                              label: g.label
                            }, null, 8, ["label"])), [
                              [ke, k < 12]
                            ])),
                            128
                            /* KEYED_FRAGMENT */
                          ))
                        ]),
                        _: 1
                        /* STABLE */
                      }, 8, ["modelValue"])
                    ]),
                    _: 1
                    /* STABLE */
                  }, 8, ["required", "label"])) : C("v-if", !0),
                  r.Q2RadioShow ? (z(), Y(s, {
                    key: 1,
                    prop: "radioQ2Value",
                    required: e.radioQ2Options.required,
                    "show-message": !1,
                    label: `${r.radioSerialQ2}${e.radioQ2Options.questionName}`,
                    style: { "margin-bottom": "8px" }
                  }, {
                    default: N(() => [
                      T(d, {
                        modelValue: r.form.radioQ2Value,
                        "onUpdate:modelValue": t[1] || (t[1] = (g) => r.form.radioQ2Value = g)
                      }, {
                        default: N(() => [
                          (z(!0), W(
                            re,
                            null,
                            ne(e.radioQ2Options.radioList, (g, k) => fe((z(), Y(l, {
                              key: k,
                              label: g.label
                            }, null, 8, ["label"])), [
                              [ke, k < 12]
                            ])),
                            128
                            /* KEYED_FRAGMENT */
                          ))
                        ]),
                        _: 1
                        /* STABLE */
                      }, 8, ["modelValue"])
                    ]),
                    _: 1
                    /* STABLE */
                  }, 8, ["required", "label"])) : C("v-if", !0),
                  r.Q1CheckboxShow ? (z(), Y(s, {
                    key: 2,
                    class: "ch-nps-public-checkbox",
                    prop: "checkListQ1Value",
                    required: e.checkboxQ1Options.required,
                    "show-message": !1,
                    label: `${r.checkboxSerialQ1}${e.checkboxQ1Options.questionName}`
                  }, {
                    default: N(() => [
                      T(i, {
                        modelValue: r.form.checkListQ1Value,
                        "onUpdate:modelValue": t[2] || (t[2] = (g) => r.form.checkListQ1Value = g)
                      }, {
                        default: N(() => [
                          (z(!0), W(
                            re,
                            null,
                            ne(e.checkboxQ1Options.checkboxList, (g, k) => (z(), Y(b, {
                              key: k,
                              label: g.label
                            }, null, 8, ["label"]))),
                            128
                            /* KEYED_FRAGMENT */
                          ))
                        ]),
                        _: 1
                        /* STABLE */
                      }, 8, ["modelValue"])
                    ]),
                    _: 1
                    /* STABLE */
                  }, 8, ["required", "label"])) : C("v-if", !0),
                  r.Q2CheckboxShow ? (z(), Y(s, {
                    key: 3,
                    class: "ch-nps-public-checkbox",
                    prop: "checkListQ2Value",
                    required: e.checkboxQ2Options.required,
                    "show-message": !1,
                    label: `${r.checkboxSerialQ2}${e.checkboxQ2Options.questionName}`
                  }, {
                    default: N(() => [
                      T(i, {
                        modelValue: r.form.checkListQ2Value,
                        "onUpdate:modelValue": t[3] || (t[3] = (g) => r.form.checkListQ2Value = g)
                      }, {
                        default: N(() => [
                          (z(!0), W(
                            re,
                            null,
                            ne(e.checkboxQ2Options.checkboxList, (g, k) => (z(), Y(b, {
                              key: k,
                              label: g.label
                            }, null, 8, ["label"]))),
                            128
                            /* KEYED_FRAGMENT */
                          ))
                        ]),
                        _: 1
                        /* STABLE */
                      }, 8, ["modelValue"])
                    ]),
                    _: 1
                    /* STABLE */
                  }, 8, ["required", "label"])) : C("v-if", !0),
                  r.questionAnswerShow ? (z(), Y(s, {
                    key: 4,
                    class: "ch-nps-question-input",
                    label: `${r.questionInputSerial}${e.questionAnswerOptions.questionName}`,
                    prop: "questionInput",
                    required: e.questionAnswerOptions.required,
                    "show-message": !1
                  }, {
                    default: N(() => [
                      T(H, {
                        modelValue: r.form.questionInput,
                        "onUpdate:modelValue": t[4] || (t[4] = (g) => r.form.questionInput = g),
                        placeholder: e.questionAnswerOptions.noValueTip
                      }, null, 8, ["modelValue", "placeholder"])
                    ]),
                    _: 1
                    /* STABLE */
                  }, 8, ["label", "required"])) : C("v-if", !0),
                  r.backVisitShow ? (z(), Y(s, {
                    key: 5,
                    prop: "isBackVisit",
                    required: !0,
                    "show-message": !1,
                    label: `${r.visitSerial}是否同意产品经理回访?`,
                    style: { "margin-bottom": "9px" }
                  }, {
                    default: N(() => [
                      O("div", go, [
                        O("div", xo, [
                          C(' <span style="display:block; margin-right: 20px">{{`${visitSerial}是否同意产品经理回访?`}}</span> '),
                          T(l, {
                            modelValue: r.form.isBackVisit,
                            "onUpdate:modelValue": t[5] || (t[5] = (g) => r.form.isBackVisit = g),
                            label: "1"
                          }, {
                            default: N(() => [
                              wo
                            ]),
                            _: 1
                            /* STABLE */
                          }, 8, ["modelValue"]),
                          T(l, {
                            modelValue: r.form.isBackVisit,
                            "onUpdate:modelValue": t[6] || (t[6] = (g) => r.form.isBackVisit = g),
                            label: "0"
                          }, {
                            default: N(() => [
                              Po
                            ]),
                            _: 1
                            /* STABLE */
                          }, 8, ["modelValue"])
                        ]),
                        r.form.isBackVisit === "1" ? (z(), W("div", yo, [
                          T(s, {
                            prop: "userName",
                            required: !0,
                            "show-message": !1
                          }, {
                            default: N(() => [
                              T(H, {
                                modelValue: r.form.userName,
                                "onUpdate:modelValue": t[7] || (t[7] = (g) => r.form.userName = g),
                                placeholder: "请输入您的姓名"
                              }, null, 8, ["modelValue"])
                            ]),
                            _: 1
                            /* STABLE */
                          }),
                          Oo,
                          T(s, {
                            prop: "userPhone",
                            required: !0,
                            "show-message": !1
                          }, {
                            default: N(() => [
                              T(H, {
                                modelValue: r.form.userPhone,
                                "onUpdate:modelValue": t[8] || (t[8] = (g) => r.form.userPhone = g),
                                type: "text",
                                placeholder: "请输入您的联系电话"
                              }, null, 8, ["modelValue"])
                            ]),
                            _: 1
                            /* STABLE */
                          }),
                          T(s, {
                            prop: "userAddress",
                            required: !0,
                            "show-message": !1
                          }, {
                            default: N(() => [
                              T(H, {
                                modelValue: r.form.userAddress,
                                "onUpdate:modelValue": t[9] || (t[9] = (g) => r.form.userAddress = g),
                                class: "w-50 m-2",
                                placeholder: "请输入您回访的合适时间",
                                style: { "margin-left": "15px" },
                                type: "text"
                              }, {
                                suffix: N(() => [
                                  T(o, { class: "el-input__icon" }, {
                                    default: N(() => [
                                      T(a)
                                    ]),
                                    _: 1
                                    /* STABLE */
                                  })
                                ]),
                                _: 1
                                /* STABLE */
                              }, 8, ["modelValue"])
                            ]),
                            _: 1
                            /* STABLE */
                          })
                        ])) : C("v-if", !0)
                      ])
                    ]),
                    _: 1
                    /* STABLE */
                  }, 8, ["label"])) : C("v-if", !0),
                  r.joinExchangeShow ? (z(), Y(s, {
                    key: 6,
                    prop: "isJoin",
                    required: !0,
                    "show-message": !1,
                    label: `${r.joinSerial}是否参与积分奖励?`,
                    style: {}
                  }, {
                    default: N(() => [
                      C(' <span style="display:block; margin-right: 20px">{{`${joinSerial}是否参与积分奖励?`}}</span> '),
                      T(d, {
                        modelValue: r.form.isJoin,
                        "onUpdate:modelValue": t[10] || (t[10] = (g) => r.form.isJoin = g),
                        onChange: e.changeJoinStatus
                      }, {
                        default: N(() => [
                          T(l, { label: "1" }, {
                            default: N(() => [
                              Ho
                            ]),
                            _: 1
                            /* STABLE */
                          }),
                          T(l, { label: "0" }, {
                            default: N(() => [
                              jo
                            ]),
                            _: 1
                            /* STABLE */
                          })
                        ]),
                        _: 1
                        /* STABLE */
                      }, 8, ["modelValue", "onChange"])
                    ]),
                    _: 1
                    /* STABLE */
                  }, 8, ["label"])) : C("v-if", !0),
                  O("div", zo, [
                    r.joinExchangeShow ? (z(), W("span", Lo, "提交可获得2分奖励，用于兑换商店小礼物")) : C("v-if", !0),
                    T(m, {
                      onClick: e.handleSubmit,
                      size: "large",
                      type: "primary",
                      style: { color: "#fff" }
                    }, {
                      default: N(() => [
                        Xo
                      ]),
                      _: 1
                      /* STABLE */
                    }, 8, ["onClick"]),
                    T(m, {
                      onClick: e.handleCancel,
                      size: "large"
                    }, {
                      default: N(() => [
                        No
                      ]),
                      _: 1
                      /* STABLE */
                    }, 8, ["onClick"])
                  ])
                ]),
                _: 1
                /* STABLE */
              }, 8, ["model", "rules"])
            ]),
            fe(O(
              "div",
              To,
              So,
              512
              /* NEED_PATCH */
            ), [
              [ke, r.joinExchangeShow && r.isShowFixed]
            ])
          ]),
          _: 1
          /* STABLE */
        }, 8, ["onOpened", "onClose", "modelValue"])
      ]),
      T(
        w,
        { ref: "LoginDialogRef" },
        null,
        512
        /* NEED_PATCH */
      )
    ],
    64
    /* STABLE_FRAGMENT */
  );
}
const Vo = /* @__PURE__ */ xe(co, [["render", ko], ["__file", "E:/AWScode/awsui/awsui-biz/packages/nps/src/components/survey-dialog/index.vue"]]), Wo = {
  name: "remindDialog",
  emits: ["update-remindVisible"],
  props: {
    remindVisible: {
      type: Boolean,
      default: !1
    },
    optionsData: {
      type: String,
      default: ""
    },
    code: {
      type: String
    }
  },
  setup(e, t) {
    const { proxy: n, appContext: r } = ge(), u = ce(null);
    let c = Q({
      title: "",
      coverUrl: "",
      location: "",
      carouselOptions: {},
      textOptions: "",
      btnOptions: {},
      // 跳转链接
      traceCode: "",
      autoplay: !1,
      // 是否自动切换
      interval: 3e3,
      //轮播时间
      nowIndex: 0
      //轮播默认滑动到第一个
    }), l = F({
      get: () => e.remindVisible,
      set: (a) => {
        t.emit("update-remindVisible", a);
      }
    }), d = F(() => {
      let a = "";
      switch (b.value) {
        case "right-down-1":
          a = "width:100%";
          break;
        case "right-down-2":
          a = "width:100%";
          break;
        case "middle-1":
          a = "width:36%";
          break;
        case "middle-2":
          a = "width:20%";
          break;
      }
      return a;
    });
    Ve(() => e.optionsData, (a) => {
      if (console.log(a, "remind-监听的值"), a !== "{}" && a !== "") {
        console.log();
        const { title: o, coverUrl: m, location: y, carouselOptions: P, textOptions: w, btnOptions: g, traceCode: k } = JSON.parse(a);
        c.title = o, c.coverUrl = m, c.location = y, c.carouselOptions = P, c.textOptions = w, c.btnOptions = g, c.traceCode = k;
      }
    }, {
      immediate: !0,
      deep: !0
    });
    let s = F({
      get: () => e.code
    }), b = F({
      get: () => c.location
    }), i = F(() => {
      let a = "";
      switch (b.value) {
        case "right-down-1":
          c.coverUrl ? a = "height:76%" : a = "height:50%";
          break;
        case "right-down-2":
          c.coverUrl ? a = "height:76%" : a = "height:50%";
          break;
        case "middle-1":
          c.textOptions ? a = "height:80%;" : a = "height: 100%;";
          break;
        case "middle-2":
          c.textOptions ? a = "height:80%;" : a = "height: 100%;";
          break;
      }
      return a;
    });
    const H = {
      clickIJumpUrl: (a) => {
        !n.awsuiTools.isNull(a) && a && window.open(a);
      },
      setImageStyle() {
        let a = "";
        return c.textOptions ? c.carouselOptions.dataList !== void 0 && c.carouselOptions.dataList[0].linkUrl && (a = "cursor: pointer;") : c.carouselOptions.dataList !== void 0 && c.carouselOptions.dataList[0].linkUrl ? a = "cursor: pointer;height:100%;" : a = "height:100%;", a;
      },
      handleOpen: () => {
      },
      handleClose: () => {
        H.subNpsData(), c.nowIndex = 0;
      },
      subNpsData: () => {
        var a = window.npsAPI.changeNPSObj();
        if (a !== void 0) {
          var o = window.npsAPI.getBrowserName(), m = window.npsAPI.getBrowserVersion(o), y = {
            tenantId: a.tenantId,
            //	String	是	租户ID
            traceId: a.traceId,
            //String	是	用户唯一标识
            traceCode: c.traceCode,
            //	String	是	跟踪代码
            npsCode: s.value,
            //	String	是	NPS代码
            userName: a.userName,
            //	String		姓名
            orgName: a.org,
            //	String		单位名
            title: c.title,
            //	String		标题
            province: "",
            //	String		省
            city: "",
            //	String		市
            platform: a.platform,
            //		String		平台产品
            platformVer: a.ver,
            //		String		平台版本
            biz: a.biz,
            //		String		客户服务类型
            browser: o,
            //		String		浏览器
            browserVer: m,
            //		String		浏览器版本
            device: "pc"
            //
          };
          if (n.awsuiTools.isNull(y.npsCode) || n.awsuiTools.isNull(y.traceId) || n.awsuiTools.isNull(y.traceCode) || n.awsuiTools.isNull(y.tenantId)) {
            console.log("前端参数请求异常---请求停止", y);
            return;
          }
          var P = window.npsAPI.baseUrl;
          if (n.awsuiTools.isNull(P)) {
            console.log("请求异常---请求停止 baseUrl=", P);
            return;
          }
          zt.post(P + "/add/popup/record", y).then((w) => {
            console.log("add/popup/record>请求结果", w), c.nowIndex = 0;
          }).catch((w) => {
            console.log(w);
          });
        }
      },
      handleViewMore: (a) => {
        n.awsuiTools.isNull(a) || window.open(a);
      },
      //获取走马灯的索引
      changeCarousel(a) {
        c.nowIndex = a;
      },
      toPlayer() {
      }
    };
    return {
      awsuiDialog: u,
      ...le(c),
      ...le(H),
      newRemindVisible: l,
      newLocationClass: b,
      newBtnWidth: d,
      carouselHeight: i
    };
  }
}, Mo = {
  class: "ch-nps-remind-overview",
  id: "npsRemindOverviewId"
}, Co = {
  key: 0,
  class: "ch-nps-remind-header"
}, Ro = ["src"], qo = { class: "ch-nps-remind-body" }, Yo = ["src", "onClick"], Zo = {
  key: 1,
  id: "myvideo",
  controls: "",
  style: { width: "100%" }
}, Fo = ["src"], Go = /* @__PURE__ */ G(" 您的浏览器不支持 video 标签。 "), Eo = {
  key: 1,
  id: "myvideo",
  controls: "",
  style: { width: "100%" }
}, Io = ["src"], Bo = /* @__PURE__ */ G(" 您的浏览器不支持 video 标签。 "), Uo = ["innerHTML"], Ao = {
  key: 0,
  class: "ch-nps-remind-footer"
};
function Jo(e, t, n, r, u, c) {
  const l = V("el-carousel-item"), d = V("el-carousel"), s = V("el-image"), b = V("awsui-button"), i = V("awsui-dialog");
  return z(), W("div", Mo, [
    T(i, {
      "custom-class": `${r.newLocationClass} awsui-dialog`,
      ref: "awsuiDialog",
      modal: !1,
      "append-to-body": !1,
      "close-on-click-modal": !1,
      onOpened: e.handleOpen,
      onClose: e.handleClose,
      modelValue: r.newRemindVisible,
      "onUpdate:modelValue": t[2] || (t[2] = (H) => r.newRemindVisible = H)
    }, {
      default: N(() => [
        !r.newLocationClass.includes("middle") && e.coverUrl ? (z(), W("div", Co, [
          O("img", { src: e.coverUrl }, null, 8, Ro)
        ])) : C("v-if", !0),
        O(
          "div",
          {
            class: "ch-nps-title",
            style: he(
              r.newLocationClass.includes("middle") ? "text-align:center;margin-top:30px; padding:0 35px;" : e.coverUrl ? "margin-left:20px;" : "padding:0 35px 0 20px; margin-top:30px!important;"
            )
          },
          [
            O(
              "span",
              null,
              B(e.title),
              1
              /* TEXT */
            )
          ],
          4
          /* STYLE */
        ),
        O(
          "div",
          {
            class: "ch-nps-remind-container",
            style: he(r.newLocationClass.includes("middle") ? "padding:14px 35px;" : e.carouselOptions && e.carouselOptions.dataList && e.carouselOptions.dataList.length === 0 ? "padding: 6px 20px!important" : "padding:10px 20px")
          },
          [
            O("div", qo, [
              O(
                "div",
                {
                  class: ve(["ch-nps-main", { "click-ch-nps-main": e.carouselOptions.category === "video" }])
                },
                [
                  e.carouselOptions && e.carouselOptions.dataList && e.carouselOptions.dataList.length > 1 ? (z(), Y(d, {
                    key: 0,
                    onChange: e.changeCarousel,
                    "initial-index": e.nowIndex,
                    interval: e.interval,
                    trigger: "click",
                    arrow: "always",
                    "pause-on-hover": "",
                    autoplay: e.autoplay,
                    "indicator-position": "none",
                    style: he(`${r.carouselHeight}`)
                  }, {
                    default: N(() => [
                      (z(!0), W(
                        re,
                        null,
                        ne(e.carouselOptions.dataList, (H, a) => (z(), Y(
                          l,
                          { key: H },
                          {
                            default: N(() => [
                              e.carouselOptions.category === "image" ? (z(), W("img", {
                                key: 0,
                                style: he(H !== void 0 && H.linkUrl ? "cursor: pointer" : ""),
                                src: H.url && H.url,
                                fit: "",
                                onClick: (o) => e.clickIJumpUrl(H.linkUrl && H.linkUrl)
                              }, null, 12, Yo)) : (z(), W("video", Zo, [
                                O("source", {
                                  type: "video/mp4",
                                  src: H !== void 0 && H.url && H.url
                                }, null, 8, Fo),
                                Go
                              ]))
                            ]),
                            _: 2
                            /* DYNAMIC */
                          },
                          1024
                          /* DYNAMIC_SLOTS */
                        ))),
                        128
                        /* KEYED_FRAGMENT */
                      ))
                    ]),
                    _: 1
                    /* STABLE */
                  }, 8, ["onChange", "initial-index", "interval", "autoplay", "style"])) : C("v-if", !0),
                  e.carouselOptions && e.carouselOptions.dataList && e.carouselOptions.dataList.length === 1 ? (z(), W(
                    "div",
                    {
                      key: 1,
                      class: "ch-nps-single-image",
                      style: he(`${r.carouselHeight}`)
                    },
                    [
                      e.carouselOptions.category === "image" ? (z(), Y(s, {
                        key: 0,
                        style: he(e.setImageStyle()),
                        src: e.carouselOptions.dataList[0].url && e.carouselOptions.dataList[0].url,
                        onClick: t[0] || (t[0] = (H) => e.clickIJumpUrl(e.carouselOptions.dataList[0].linkUrl && e.carouselOptions.dataList[0].linkUrl))
                      }, null, 8, ["style", "src"])) : (z(), W("video", Eo, [
                        O("source", {
                          type: "video/mp4",
                          src: e.carouselOptions.dataList[0].url
                        }, null, 8, Io),
                        Bo
                      ]))
                    ],
                    4
                    /* STYLE */
                  )) : C("v-if", !0),
                  e.textOptions ? (z(), W(
                    "div",
                    {
                      key: 2,
                      class: "ch-nps-text-content",
                      style: he(e.carouselOptions && e.carouselOptions.dataList && e.carouselOptions.dataList.length > 0 ? "" : "margin-top:0px!important;")
                    },
                    [
                      O("span", { innerHTML: e.textOptions }, null, 8, Uo)
                    ],
                    4
                    /* STYLE */
                  )) : C("v-if", !0)
                ],
                2
                /* CLASS */
              )
            ]),
            e.btnOptions && e.btnOptions.btnText ? (z(), W("div", Ao, [
              T(b, {
                onClick: t[1] || (t[1] = (H) => e.handleViewMore(e.btnOptions.btnUrl)),
                type: "primary",
                class: "jump-btn",
                style: he(r.newBtnWidth)
              }, {
                default: N(() => [
                  G(
                    B(e.btnOptions.btnText),
                    1
                    /* TEXT */
                  )
                ]),
                _: 1
                /* STABLE */
              }, 8, ["style"])
            ])) : C("v-if", !0)
          ],
          4
          /* STYLE */
        )
      ]),
      _: 1
      /* STABLE */
    }, 8, ["custom-class", "onOpened", "onClose", "modelValue"])
  ]);
}
const Ko = /* @__PURE__ */ xe(Wo, [["render", Jo], ["__file", "E:/AWScode/awsui/awsui-biz/packages/nps/src/components/remind-dialog/index.vue"]]), Qo = {
  name: "NPS",
  components: { SurveyDialog: Vo, RemindDialog: Ko },
  props: {
    npsCode: {
      type: String,
      default: ""
    }
  },
  setup(e, t) {
    const { proxy: n, appContext: r } = ge();
    let u = Q({
      remindVisible: !1,
      surveyVisible: !1,
      remindData: "",
      surveyData: "",
      storageCode: ""
    });
    const c = {
      dataOptions(l) {
        return window.npsAPI.getSolutionByNpsCode ? window.npsAPI.getSolutionByNpsCode(l) : {
          ok: !1
        };
      },
      // 回调
      updateSurveyVisible: (l) => {
        u.surveyVisible = l;
      },
      // 回调
      updateRemindVisible: (l) => {
        u.remindVisible = l;
      },
      getBrowserName: () => {
        let l = navigator.userAgent.toLowerCase();
        if (window.ActiveXObject || "ActiveXObject" in window)
          return "IE";
        if (l.indexOf("chrome") > -1 && l.indexOf("safari") > -1)
          return "Chrome";
        if (l.indexOf("firefox") > -1)
          return "Firefox";
        if (l.indexOf("opera") > -1)
          return "Opera";
        if (l.indexOf("safari") > -1 && l.indexOf("chrome") == -1)
          return "Safari";
        if (l.indexOf("edge") > -1)
          return "Edge";
        if (/qqbrowser/.test(l))
          return "QQBrowser";
        if (/MicroMessenger/i.test(l))
          return "WeixinBrowser";
      },
      getBrowserVersion: (l) => {
        let d = navigator.userAgent.toLowerCase(), s = "";
        if (l == "IE")
          s = d.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];
        else if (l == "Chrome") {
          for (let b in navigator.mimeTypes)
            navigator.mimeTypes[b].type == "application/360softmgrplugin" && (l = "360");
          s = d.match(/chrome\/([\d.]+)/)[1];
        } else
          l == "Firefox" ? s = d.match(/firefox\/([\d.]+)/)[1] : l == "Opera" ? s = d.match(/opera\/([\d.]+)/)[1] : l == "Safari" ? s = d.match(/version\/([\d.]+)/)[1] : l == "Edge" ? s = d.match(/edge\/([\d.]+)/)[1] : l == "QQBrowser" && (s = d.match(/qqbrowser\/([\d.]+)/)[1]);
        return s;
      },
      getNpsDateOption(l) {
        let d = window.npsAPI.changeNPSObj();
        if (console.log("1步骤"), !(l == null || l == "") && (console.log("2步骤"), console.log(d, "获取的nps"), d !== void 0)) {
          console.log("3步骤");
          let s = c.getBrowserName, b = c.getBrowserVersion(s), i = {
            npsCode: l,
            traceId: d.traceId,
            tenantId: d.tenantId,
            platform: d.platform,
            ver: d.ver,
            biz: d.biz,
            userId: d.userId,
            userName: d.userName,
            org: d.org,
            browser: s,
            browserVer: b,
            device: "pc"
          };
          if (console.log("4步骤"), n.awsuiTools.isNull(i.npsCode) || n.awsuiTools.isNull(i.traceId) || n.awsuiTools.isNull(i.tenantId)) {
            console.log("前端参数请求异常---请求停止", i);
            return;
          }
          let H = window.npsAPI.baseUrl;
          if (console.log("5步骤"), n.awsuiTools.isNull(H)) {
            console.log("请求异常---请求停止 baseUrl=", H);
            return;
          }
          console.log("6步骤"), zt.post(H + "/query/nps/program", i).then((a) => {
            if (console.log("7步骤", a), a.status == 200) {
              let o = a.data;
              console.log(o, "nps返回数据"), o.data.traceType === "2" && o.data.npsSolution ? (u.remindData = JSON.stringify(o.data.npsSolution), u.remindVisible = !0) : o.data.traceType === "1" && o.data.npsSolution && (u.surveyVisible = !0, u.surveyData = JSON.stringify(o.data.npsSolution));
            }
          }).catch((a) => {
            console.log(a);
          });
        }
      }
      // }
    };
    return Ve(() => e.npsCode, (l) => {
      if (console.log(l, "监听到了新code"), l == null || l === "" || window.npsAPI == null)
        return !1;
      u.storageCode = l, c.getNpsDateOption(l);
    }, {
      immediate: !0,
      deep: !0
    }), {
      ...le(u),
      ...le(c)
    };
  }
}, _o = { class: "ch-overview-nps" };
function $o(e, t, n, r, u, c) {
  const l = V("SurveyDialog"), d = V("RemindDialog");
  return z(), W("div", _o, [
    T(l, {
      ref: "surveyDialogRef",
      surveyVisible: e.surveyVisible,
      formData: e.surveyData,
      code: e.storageCode,
      onUpdateSurveyVisible: e.updateSurveyVisible
    }, null, 8, ["surveyVisible", "formData", "code", "onUpdateSurveyVisible"]),
    T(d, {
      ref: "remindDialogRef",
      remindVisible: e.remindVisible,
      optionsData: e.remindData,
      code: e.storageCode,
      onUpdateRemindVisible: e.updateRemindVisible
    }, null, 8, ["remindVisible", "optionsData", "code", "onUpdateRemindVisible"])
  ]);
}
const ht = /* @__PURE__ */ xe(Qo, [["render", $o], ["__file", "E:/AWScode/awsui/awsui-biz/packages/nps/src/views/index.vue"]]);
ht.install = (e) => {
  window.npsAPI || (e.config.globalProperties.awsuiTools.loadJS(e.config.globalProperties.awsuiTools.buildReleasePath("commons/js/nps/nps-common.js"), () => {
    e.config.globalProperties.npsAPI = window.npsAPI;
  }), e.config.globalProperties.awsuiTools.loadJS(e.config.globalProperties.awsuiTools.buildReleasePath("commons/js/util/Base64.js"), () => {
  })), e.config.globalProperties.$store.registerModule("publishModel", Sr), e.component(ht.name, ht);
};
export {
  ht as default
};
